Add halt status to panel and a way to clear it
[clinton/Smoothieware.git] / src / modules / utils / panel / Panel.h
index b46ffc2..8960599 100644 (file)
@@ -35,6 +35,7 @@ class Panel : public Module {
         uint32_t button_tick(uint32_t dummy);
         uint32_t encoder_tick(uint32_t dummy);
         void on_idle(void* argument);
+        void on_halt(void* argument);
         void on_main_loop(void* argument);
         void on_gcode_received(void* argument);
         void on_second_tick(void* argument);
@@ -79,6 +80,7 @@ class Panel : public Module {
 
         string getMessage() { return message; }
         bool hasMessage() { return message.size() > 0; }
+        bool is_halted() const { return halted; }
 
         uint16_t get_screen_lines() const { return screen_lines; }
 
@@ -129,6 +131,7 @@ class Panel : public Module {
             bool menu_changed:1;
             bool control_value_changed:1;
             bool external_sd_enable:1;
+            bool halted:1;
             volatile bool counter_changed:1;
             volatile bool click_changed:1;
             volatile bool refresh_flag:1;