Browse Source

🎨 Nextion cleanup

Scott Lahteine 3 years ago
parent
commit
c1b53d63fc
1 changed files with 13 additions and 13 deletions
  1. 13
    13
      Marlin/src/lcd/extui/nextion/nextion_extui.cpp

+ 13
- 13
Marlin/src/lcd/extui/nextion/nextion_extui.cpp View File

35
 
35
 
36
 namespace ExtUI {
36
 namespace ExtUI {
37
 
37
 
38
-  void onStartup()                                   { nextion.Startup();  }
39
-  void onIdle()                                      { nextion.IdleLoop(); }
38
+  void onStartup() { nextion.Startup();  }
39
+  void onIdle() { nextion.IdleLoop(); }
40
   void onPrinterKilled(FSTR_P const error, FSTR_P const component) { nextion.PrinterKilled(error, component); }
40
   void onPrinterKilled(FSTR_P const error, FSTR_P const component) { nextion.PrinterKilled(error, component); }
41
   void onMediaInserted() {}
41
   void onMediaInserted() {}
42
-  void onMediaError()    {}
43
-  void onMediaRemoved()  {}
42
+  void onMediaError() {}
43
+  void onMediaRemoved() {}
44
   void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
44
   void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
45
   void onPrintTimerStarted() {}
45
   void onPrintTimerStarted() {}
46
-  void onPrintTimerPaused()  {}
46
+  void onPrintTimerPaused() {}
47
   void onPrintTimerStopped() {}
47
   void onPrintTimerStopped() {}
48
-  void onFilamentRunout(const extruder_t)            {}
48
+  void onFilamentRunout(const extruder_t) {}
49
   void onUserConfirmRequired(const char * const msg) { nextion.ConfirmationRequest(msg); }
49
   void onUserConfirmRequired(const char * const msg) { nextion.ConfirmationRequest(msg); }
50
-  void onStatusChanged(const char * const msg)       { nextion.StatusChange(msg);        }
50
+  void onStatusChanged(const char * const msg) { nextion.StatusChange(msg); }
51
 
51
 
52
-  void onHomingStart()    {}
52
+  void onHomingStart() {}
53
   void onHomingDone() {}
53
   void onHomingDone() {}
54
-  void onPrintDone()                             { nextion.PrintFinished(); }
54
+  void onPrintDone() { nextion.PrintFinished(); }
55
 
55
 
56
-  void onFactoryReset()   {}
56
+  void onFactoryReset() {}
57
 
57
 
58
   void onStoreSettings(char *buff) {
58
   void onStoreSettings(char *buff) {
59
     // Called when saving to EEPROM (i.e. M500). If the ExtUI needs
59
     // Called when saving to EEPROM (i.e. M500). If the ExtUI needs
61
     // into buff.
61
     // into buff.
62
 
62
 
63
     // Example:
63
     // Example:
64
-    //  static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
64
+    //  static_assert(sizeof(myDataStruct) <= eeprom_data_size);
65
     //  memcpy(buff, &myDataStruct, sizeof(myDataStruct));
65
     //  memcpy(buff, &myDataStruct, sizeof(myDataStruct));
66
   }
66
   }
67
 
67
 
71
     // from buff
71
     // from buff
72
 
72
 
73
     // Example:
73
     // Example:
74
-    //  static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
74
+    //  static_assert(sizeof(myDataStruct) <= eeprom_data_size);
75
     //  memcpy(&myDataStruct, buff, sizeof(myDataStruct));
75
     //  memcpy(&myDataStruct, buff, sizeof(myDataStruct));
76
   }
76
   }
77
 
77
 
97
       // Called when any mesh points are updated
97
       // Called when any mesh points are updated
98
     }
98
     }
99
 
99
 
100
-    void onMeshUpdate(const int8_t xpos, const int8_t ypos, const ExtUI::probe_state_t state) {
100
+    void onMeshUpdate(const int8_t xpos, const int8_t ypos, const probe_state_t state) {
101
       // Called to indicate a special condition
101
       // Called to indicate a special condition
102
     }
102
     }
103
   #endif
103
   #endif

Loading…
Cancel
Save