Procházet zdrojové kódy

Clean up spaces and words

Scott Lahteine před 3 roky
rodič
revize
2c62886c71

+ 5
- 5
Marlin/src/MarlinCore.cpp Zobrazit soubor

@@ -990,14 +990,14 @@ void setup() {
990 990
   #endif
991 991
   #define SETUP_RUN(C) do{ SETUP_LOG(STRINGIFY(C)); C; }while(0)
992 992
 
993
-  MYSERIAL0.begin(BAUDRATE);
993
+  MYSERIAL1.begin(BAUDRATE);
994 994
   millis_t serial_connect_timeout = millis() + 1000UL;
995
-  while (!MYSERIAL0.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
995
+  while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
996 996
 
997 997
   #if HAS_MULTI_SERIAL && !HAS_ETHERNET
998
-    MYSERIAL1.begin(BAUDRATE);
998
+    MYSERIAL2.begin(BAUDRATE);
999 999
     serial_connect_timeout = millis() + 1000UL;
1000
-    while (!MYSERIAL1.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
1000
+    while (!MYSERIAL2.connected() && PENDING(millis(), serial_connect_timeout)) { /*nada*/ }
1001 1001
   #endif
1002 1002
   SERIAL_ECHOLNPGM("start");
1003 1003
 
@@ -1053,7 +1053,7 @@ void setup() {
1053 1053
   #if HAS_FILAMENT_SENSOR
1054 1054
     SETUP_RUN(runout.setup());
1055 1055
   #endif
1056
-  
1056
+
1057 1057
   #if HAS_TMC220x
1058 1058
     SETUP_RUN(tmc_serial_begin());
1059 1059
   #endif

+ 1
- 1
Marlin/src/gcode/host/M115.cpp Zobrazit soubor

@@ -144,7 +144,7 @@ void GcodeSuite::M115() {
144 144
     // COOLER_TEMPERATURE (M143, M193)
145 145
     cap_line(PSTR("COOLER_TEMPERATURE"), ENABLED(HAS_COOLER));
146 146
 
147
-    // MEATPACK Compresson
147
+    // MEATPACK Compression
148 148
     cap_line(PSTR("MEATPACK"), ENABLED(MEATPACK));
149 149
 
150 150
     // Machine Geometry

+ 10
- 8
Marlin/src/gcode/queue.cpp Zobrazit soubor

@@ -272,7 +272,7 @@ void GCodeQueue::flush_and_request_resend(const serial_index_t serial_ind) {
272 272
   SERIAL_ECHOLN(serial_state[serial_ind.index].last_N + 1);
273 273
 }
274 274
 
275
-inline bool serial_data_available(serial_index_t index) {
275
+static bool serial_data_available(serial_index_t index) {
276 276
   const int a = SERIAL_IMPL.available(index);
277 277
   #if BOTH(RX_BUFFER_MONITOR, RX_BUFFER_SIZE)
278 278
     if (a > RX_BUFFER_SIZE - 2) {
@@ -283,13 +283,15 @@ inline bool serial_data_available(serial_index_t index) {
283 283
   return a > 0;
284 284
 }
285 285
 
286
-// Multiserial already handles dispatch to/from multiple ports
287
-inline bool any_serial_data_available() {
288
-  LOOP_L_N(p, NUM_SERIAL)
289
-    if (serial_data_available(p))
290
-      return true;
291
-  return false;
292
-}
286
+#if NO_TIMEOUTS > 0
287
+  // Multiserial already handles dispatch to/from multiple ports
288
+  static bool any_serial_data_available() {
289
+    LOOP_L_N(p, NUM_SERIAL)
290
+      if (serial_data_available(p))
291
+        return true;
292
+    return false;
293
+  }
294
+#endif
293 295
 
294 296
 inline int read_serial(const serial_index_t index) { return SERIAL_IMPL.read(index); }
295 297
 

+ 1
- 2
Marlin/src/inc/SanityCheck.h Zobrazit soubor

@@ -3337,12 +3337,11 @@ static_assert(   _ARR_TEST(3,0) && _ARR_TEST(3,1) && _ARR_TEST(3,2)
3337 3337
   #endif
3338 3338
 #endif
3339 3339
 
3340
-
3341 3340
 /**
3342 3341
  * Sanity Check for MEATPACK and BINARY_FILE_TRANSFER Features
3343 3342
  */
3344 3343
 #if BOTH(MEATPACK, BINARY_FILE_TRANSFER)
3345
-  #error "Either enable MEATPACK or enable BINARY_FILE_TRANSFER."
3344
+  #error "Either enable MEATPACK or BINARY_FILE_TRANSFER, not both."
3346 3345
 #endif
3347 3346
 
3348 3347
 /**

+ 9
- 9
Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h Zobrazit soubor

@@ -237,7 +237,7 @@
237 237
    * This board does not have dedicated TMC UART pins. Custom wiring is needed.
238 238
    * You may uncomment one of the options below, or add it to your Configuration.h.
239 239
    *
240
-   * When using up to four TMC2209 drivers, hardware serial is recommented on
240
+   * When using up to four TMC2209 drivers, hardware serial is recommended on
241 241
    * MSerial0 or MSerial1.
242 242
    *
243 243
    * When using TMC2208 or more than four drivers, SoftwareSerial will be needed,
@@ -246,14 +246,14 @@
246 246
 
247 247
   //#define TMC_HARDWARE_SERIAL
248 248
   #if ENABLED(TMC_HARDWARE_SERIAL)
249
-    #define X_HARDWARE_SERIAL            MSerial0
250
-    #define X2_HARDWARE_SERIAL           MSerial0
251
-    #define Y_HARDWARE_SERIAL            MSerial0
252
-    #define Y2_HARDWARE_SERIAL           MSerial0
253
-    #define Z_HARDWARE_SERIAL            MSerial0
254
-    #define Z2_HARDWARE_SERIAL           MSerial0
255
-    #define E0_HARDWARE_SERIAL           MSerial0
256
-    #define E1_HARDWARE_SERIAL           MSerial0
249
+    #define X_HARDWARE_SERIAL  MSerial0
250
+    #define X2_HARDWARE_SERIAL MSerial0
251
+    #define Y_HARDWARE_SERIAL  MSerial0
252
+    #define Y2_HARDWARE_SERIAL MSerial0
253
+    #define Z_HARDWARE_SERIAL  MSerial0
254
+    #define Z2_HARDWARE_SERIAL MSerial0
255
+    #define E0_HARDWARE_SERIAL MSerial0
256
+    #define E1_HARDWARE_SERIAL MSerial0
257 257
   #endif
258 258
 
259 259
   //#define TMC_SOFTWARE_SERIAL

Loading…
Zrušit
Uložit