Merge pull request #781 from wolfmanjm/upstreamedge
authorJim Morris <morris@wolfman.com>
Sun, 29 Nov 2015 02:41:03 +0000 (18:41 -0800)
committerJim Morris <morris@wolfman.com>
Sun, 29 Nov 2015 02:41:03 +0000 (18:41 -0800)
add some M code exceptions to the on halt block

src/modules/communication/GcodeDispatch.cpp

index fe8a1ca..2e5a8a5 100644 (file)
@@ -30,7 +30,7 @@
 #define panel_checksum             CHECKSUM("panel")
 
 // goes in Flash, list of Mxxx codes that are allowed when in Halted state
-static const int allowed_mcodes[]= {105,114,119}; // get temp, get pos, get endstops
+static const int allowed_mcodes[]= {105,114,119,80,81,911,503,106,107}; // get temp, get pos, get endstops etc
 static bool is_allowed_mcode(int m) {
     for (size_t i = 0; i < sizeof(allowed_mcodes)/sizeof(int); ++i) {
         if(allowed_mcodes[i] == m) return true;