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

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

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

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

@@ -466,7 +466,7 @@ void ChironTFT::SelectFile() {
466 466
 
467 467
 void ChironTFT::ProcessPanelRequest() {
468 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 470
   // Panel request are 'A0' - 'A36'
471 471
   if (tpos != -1) {
472 472
     const int8_t req = atoi(&panel_command[tpos+1]);

Loading…
Cancel
Save