Browse Source

Fix Chiron typos, file nav

Scott Lahteine 4 years ago
parent
commit
57d0f0ce2e

+ 2
- 2
Marlin/src/lcd/extui/lib/anycubic_chiron/FileNavigator.cpp View File

75
   currentfolderdepth = 0;
75
   currentfolderdepth = 0;
76
   currentindex = 0;
76
   currentindex = 0;
77
   lastpanelindex = 0;
77
   lastpanelindex = 0;
78
-  ZERO(currentfolderindex)
78
+  ZERO(currentfolderindex);
79
 
79
 
80
   // Start at root folder
80
   // Start at root folder
81
   while (!filelist.isAtRootDir()) filelist.upDir();
81
   while (!filelist.isAtRootDir()) filelist.upDir();
108
   if (currentfolderdepth == 0)
108
   if (currentfolderdepth == 0)
109
     currentfoldername[0] = '\0';
109
     currentfoldername[0] = '\0';
110
   else {
110
   else {
111
-    const char *pos = strchr(currentfoldername, '/');
111
+    char * const pos = strchr(currentfoldername, '/');
112
     *(pos + 1) = '\0';
112
     *(pos + 1) = '\0';
113
   }
113
   }
114
 }
114
 }

+ 1
- 0
Marlin/src/lcd/extui/lib/anycubic_chiron/FileNavigator.h View File

38
 
38
 
39
 class FileNavigator {
39
 class FileNavigator {
40
   public:
40
   public:
41
+    FileNavigator();
41
     static void reset();
42
     static void reset();
42
     static void getFiles(uint16_t, panel_type_t, uint8_t filesneeded=4);
43
     static void getFiles(uint16_t, panel_type_t, uint8_t filesneeded=4);
43
     static void upDIR();
44
     static void upDIR();

+ 1
- 1
Marlin/src/lcd/extui/lib/anycubic_chiron/chiron_tft.cpp View File

466
 
466
 
467
 void ChironTFT::ProcessPanelRequest() {
467
 void ChironTFT::ProcessPanelRequest() {
468
   // Break these up into logical blocks // as its easier to navigate than one huge switch case!
468
   // Break these up into logical blocks // as its easier to navigate than one huge switch case!
469
-  const int8_t tpos = FindToken('A');
469
+  int8_t tpos = FindToken('A');
470
   // Panel request are 'A0' - 'A36'
470
   // Panel request are 'A0' - 'A36'
471
   if (tpos != -1) {
471
   if (tpos != -1) {
472
     const int8_t req = atoi(&panel_command[tpos+1]);
472
     const int8_t req = atoi(&panel_command[tpos+1]);

Loading…
Cancel
Save