Browse Source

🎨 Nextion cleanup

Scott Lahteine 2 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,25 +35,25 @@
35 35
 
36 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 40
   void onPrinterKilled(FSTR_P const error, FSTR_P const component) { nextion.PrinterKilled(error, component); }
41 41
   void onMediaInserted() {}
42
-  void onMediaError()    {}
43
-  void onMediaRemoved()  {}
42
+  void onMediaError() {}
43
+  void onMediaRemoved() {}
44 44
   void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
45 45
   void onPrintTimerStarted() {}
46
-  void onPrintTimerPaused()  {}
46
+  void onPrintTimerPaused() {}
47 47
   void onPrintTimerStopped() {}
48
-  void onFilamentRunout(const extruder_t)            {}
48
+  void onFilamentRunout(const extruder_t) {}
49 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 53
   void onHomingDone() {}
54
-  void onPrintDone()                             { nextion.PrintFinished(); }
54
+  void onPrintDone() { nextion.PrintFinished(); }
55 55
 
56
-  void onFactoryReset()   {}
56
+  void onFactoryReset() {}
57 57
 
58 58
   void onStoreSettings(char *buff) {
59 59
     // Called when saving to EEPROM (i.e. M500). If the ExtUI needs
@@ -61,7 +61,7 @@ namespace ExtUI {
61 61
     // into buff.
62 62
 
63 63
     // Example:
64
-    //  static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
64
+    //  static_assert(sizeof(myDataStruct) <= eeprom_data_size);
65 65
     //  memcpy(buff, &myDataStruct, sizeof(myDataStruct));
66 66
   }
67 67
 
@@ -71,7 +71,7 @@ namespace ExtUI {
71 71
     // from buff
72 72
 
73 73
     // Example:
74
-    //  static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
74
+    //  static_assert(sizeof(myDataStruct) <= eeprom_data_size);
75 75
     //  memcpy(&myDataStruct, buff, sizeof(myDataStruct));
76 76
   }
77 77
 
@@ -97,7 +97,7 @@ namespace ExtUI {
97 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 101
       // Called to indicate a special condition
102 102
     }
103 103
   #endif

Loading…
Cancel
Save