Use getter

This commit is contained in:
InsanityAutomation
2024-04-10 15:15:24 -04:00
parent 1117aff777
commit 0bfa253b73
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -79,6 +79,9 @@ public:
static void update(State &state, const uint8_t c);
static bool isEnabled() { return enabled;}
private:
static bool enabled;
};
+1 -1
View File
@@ -35,7 +35,7 @@
* M876: Handle Prompt Response
*/
void GcodeSuite::M876() {
if(TERN1(EMERGENCY_PARSER, emergency_parser.enabled))
if(TERN1(EMERGENCY_PARSER, emergency_parser.isEnabled()))
if (parser.seenval('S')) hostui.handle_response((uint8_t)parser.value_int());
}