Browse Source

Use lowercase names for serial instances

Richard Wackerbarth 10 years ago
parent
commit
4b9d5cd352
5 changed files with 9 additions and 9 deletions
  1. 2
    2
      Marlin/Marlin.h
  2. 2
    2
      Marlin/MarlinSerial.cpp
  3. 3
    3
      Marlin/MarlinSerial.h
  4. 1
    1
      Marlin/pins_TEENSYLU.h
  5. 1
    1
      Marlin/stepper.cpp

+ 2
- 2
Marlin/Marlin.h View File

@@ -52,12 +52,12 @@ typedef unsigned long millis_t;
52 52
 
53 53
 #ifdef USBCON
54 54
   #if ENABLED(BLUETOOTH)
55
-    #define MYSERIAL bt
55
+    #define MYSERIAL bluetoothSerial
56 56
   #else
57 57
     #define MYSERIAL Serial
58 58
   #endif // BLUETOOTH
59 59
 #else
60
-  #define MYSERIAL MSerial
60
+  #define MYSERIAL customizedSerial
61 61
 #endif
62 62
 
63 63
 #define SERIAL_CHAR(x) MYSERIAL.write(x)

+ 2
- 2
Marlin/MarlinSerial.cpp View File

@@ -281,12 +281,12 @@ void MarlinSerial::printFloat(double number, uint8_t digits) {
281 281
 // Preinstantiate Objects //////////////////////////////////////////////////////
282 282
 
283 283
 
284
-MarlinSerial MSerial;
284
+MarlinSerial customizedSerial;
285 285
 
286 286
 #endif // whole file
287 287
 #endif // !USBCON
288 288
 
289 289
 // For AT90USB targets use the UART for BT interfacing
290 290
 #if defined(USBCON) && ENABLED(BLUETOOTH)
291
-  HardwareSerial bt;
291
+  HardwareSerial bluetoothSerial;
292 292
 #endif

+ 3
- 3
Marlin/MarlinSerial.h View File

@@ -149,12 +149,12 @@ class MarlinSerial { //: public Stream
149 149
     void println(void);
150 150
 };
151 151
 
152
-extern MarlinSerial MSerial;
152
+extern MarlinSerial customizedSerial;
153 153
 #endif // !USBCON
154 154
 
155
-// Use the UART for BT in AT90USB configurations
155
+// Use the UART for Bluetooth in AT90USB configurations
156 156
 #if defined(USBCON) && ENABLED(BLUETOOTH)
157
-  extern HardwareSerial bt;
157
+  extern HardwareSerial bluetoothSerial;
158 158
 #endif
159 159
 
160 160
 #endif

+ 1
- 1
Marlin/pins_TEENSYLU.h View File

@@ -74,7 +74,7 @@
74 74
   #if ENABLED(LCD_I2C_PANELOLU2)
75 75
     #define BTN_EN1        27  //RX1 - fastio.h pin mapping 27
76 76
     #define BTN_EN2        26  //TX1 - fastio.h pin mapping 26
77
-    #define BTN_ENC        43  //A3 - fastio.h pin mapping 43
77
+    #define BTN_ENC        43  //A3  - fastio.h pin mapping 43
78 78
     #define SDSS           40  //use SD card on Panelolu2 (Teensyduino pin mapping)
79 79
   #endif // LCD_I2C_PANELOLU2
80 80
 

+ 1
- 1
Marlin/stepper.cpp View File

@@ -655,7 +655,7 @@ ISR(TIMER1_COMPA_vect) {
655 655
     // Take multiple steps per interrupt (For high speed moves)
656 656
     for (int8_t i = 0; i < step_loops; i++) {
657 657
       #ifndef USBCON
658
-        MSerial.checkRx(); // Check for serial chars.
658
+        customizedSerial.checkRx(); // Check for serial chars.
659 659
       #endif
660 660
 
661 661
       #if ENABLED(ADVANCE)

Loading…
Cancel
Save