Browse Source

Misc. cleanup, serial strings

Scott Lahteine 4 years ago
parent
commit
92767f5513

+ 1
- 1
Marlin/src/HAL/TEENSY40_41/HAL.h View File

@@ -69,7 +69,7 @@
69 69
   #elif WITHIN(SERIAL_PORT_2, 0, 8)
70 70
     #define MYSERIAL1 MSERIAL(SERIAL_PORT_2)
71 71
   #else
72
-      #error "SERIAL_PORT_2 must be from -1 to 8. Please update your configuration."
72
+    #error "SERIAL_PORT_2 must be from -2 to 8. Please update your configuration."
73 73
   #endif
74 74
 #endif
75 75
 

+ 6
- 6
Marlin/src/gcode/gcode_d.cpp View File

@@ -107,7 +107,7 @@
107 107
               SERIAL_EOL();
108 108
               persistentStore.access_finish();
109 109
             #else
110
-              SERIAL_ECHOLN("NO EEPROM");
110
+              SERIAL_ECHOLNPGM("NO EEPROM");
111 111
             #endif
112 112
           }
113 113
           else {
@@ -125,13 +125,13 @@
125 125
                 SERIAL_EOL();
126 126
                 persistentStore.access_finish();
127 127
               #else
128
-                SERIAL_ECHOLN("NO EEPROM");
128
+                SERIAL_ECHOLNPGM("NO EEPROM");
129 129
               #endif
130 130
             }
131 131
             SERIAL_EOL();
132 132
           }
133 133
         } break;
134
-      #endif      
134
+      #endif
135 135
 
136 136
       case 4: { // D4 Read / Write PIN
137 137
         // const uint8_t pin = parser.byteval('P');
@@ -173,8 +173,8 @@
173 173
       } break;
174 174
 
175 175
       case 100: { // D100 Disable heaters and attempt a hard hang (Watchdog Test)
176
-        SERIAL_ECHOLN("Disabling heaters and attempting to trigger Watchdog");
177
-        SERIAL_ECHOLN("(USE_WATCHDOG " TERN(USE_WATCHDOG, "ENABLED", "DISABLED") ")");
176
+        SERIAL_ECHOLNPGM("Disabling heaters and attempting to trigger Watchdog");
177
+        SERIAL_ECHOLNPGM("(USE_WATCHDOG " TERN(USE_WATCHDOG, "ENABLED", "DISABLED") ")");
178 178
         thermalManager.disable_all_heaters();
179 179
         delay(1000); // Allow time to print
180 180
         DISABLE_ISRS();
@@ -183,7 +183,7 @@
183 183
         // watchdog does not work.
184 184
         DELAY_US(10000000);
185 185
         ENABLE_ISRS();
186
-        SERIAL_ECHOLN("FAILURE: Watchdog did not trigger board reset.");
186
+        SERIAL_ECHOLNPGM("FAILURE: Watchdog did not trigger board reset.");
187 187
       }
188 188
     }
189 189
   }

+ 3
- 3
Marlin/src/gcode/host/M118.cpp View File

@@ -57,9 +57,9 @@ void GcodeSuite::M118() {
57 57
     if (WITHIN(port, 0, NUM_SERIAL))
58 58
       serial_port_index = (
59 59
         port == 0 ? SERIAL_BOTH
60
-        : port == 1 ? SERIAL_PORT
61
-        #ifdef SERIAL_PORT_2
62
-          : port == 2 ? SERIAL_PORT_2
60
+        : port == 1 ? 0
61
+        #if HAS_MULTI_SERIAL
62
+          : port == 2 ? 1
63 63
         #endif
64 64
         : SERIAL_PORT
65 65
       );

+ 0
- 4
Marlin/src/gcode/parser.cpp View File

@@ -28,10 +28,6 @@
28 28
 
29 29
 #include "../MarlinCore.h"
30 30
 
31
-#if HAS_MULTI_SERIAL
32
-  #include "queue.h"
33
-#endif
34
-
35 31
 // Must be declared for allocation and to satisfy the linker
36 32
 // Zero values need no initialization.
37 33
 

+ 1
- 1
Marlin/src/module/settings.cpp View File

@@ -2296,7 +2296,7 @@ void MarlinSettings::postprocess() {
2296 2296
 
2297 2297
     #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
2298 2298
       // Report the EEPROM settings
2299
-      if (!validating && (DISABLED(EEPROM_BOOT_SILENT) || IsRunning())) report();
2299
+      if (!validating && TERN1(EEPROM_BOOT_SILENT, IsRunning())) report();
2300 2300
     #endif
2301 2301
 
2302 2302
     EEPROM_FINISH();

+ 0
- 3
Marlin/src/pins/stm32f1/pins_JGAURORA_A5S_A1.h View File

@@ -49,9 +49,6 @@
49 49
 //#define MARLIN_EEPROM_SIZE            0x1000UL  // 4KB
50 50
 //#define MARLIN_EEPROM_SIZE (EEPROM_START_ADDRESS + (EEPROM_PAGE_SIZE) * 2UL)
51 51
 
52
-//#define EEPROM_CHITCHAT
53
-//#define DEBUG_EEPROM_READWRITE
54
-
55 52
 //
56 53
 // Limit Switches
57 54
 //

+ 1
- 1
buildroot/tests/teensy41-tests View File

@@ -57,7 +57,7 @@ exec_test $1 $2 "Sled Z Probe with Linear leveling"
57 57
 # exec_test $1 $2 "...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES"
58 58
 
59 59
 #
60
-# Test MAGNETIC_PARKING_EXTRUDER with LCD
60
+# Test MAGNETIC_PARKING_EXTRUDER with no LCD
61 61
 #
62 62
 restore_configs
63 63
 opt_set MOTHERBOARD BOARD_TEENSY41

Loading…
Cancel
Save