foosel/OctoPrint — pull request #300 by srwalter (2013-11-02 04:05:51+00:00)
Title: octoprint/util/comm.py: make line number detection more robust

When the printer requests a resend, we have to determine which line
number it wants. The old logic would be confused if there was more
than one number in the line. Some version of Teacup firmware
request a resend with the format "rs N25 Expected checksum 109".
The new logic detects this format correctly.