Closed mloit closed 5 years ago
Just to add, I typed G303 accidentally and that crashed it too, so not just M Codes.
Looking at the latest version of the RC branch it looks like this has already been resolved. The code now checks to see if the requested gcode "key" currently exists before trying to access it.
You are correct.
While testing for support of M0 [and other program control codes, M1, M2, M30], redeem became unresponsive. Issuing M0 alone has no effect, but issuing M00 crashes the system. Same goes for M01, M02. [M2 Also crashes, but M1 does not], M30 also crashes. [it actually looks like M0 and M1 are never sent, as they never come up in the OctoPrint terminal window] Invalid codes should be handled in a safe/recoverable manner.