timschmidt/repsnapper — comment on commit 40c2afcafd6bba31a4ff1ea8156e6f8cc840b851
File: src/gcode.cpp line 157
By phord:

buffer.find looks for S anywhere in the string, but then buffer.substr(1...) assumes the M was the first character in the string.