Browse Source

Fix single-char echo and pinMode usage

Scott Lahteine 7 years ago
parent
commit
b0a9c82c31
2 changed files with 6 additions and 6 deletions
  1. 4
    4
      Marlin/Marlin_main.cpp
  2. 2
    2
      Marlin/printcounter.cpp

+ 4
- 4
Marlin/Marlin_main.cpp View File

@@ -714,7 +714,7 @@ static void report_current_position();
714 714
     SERIAL_ECHOPAIR("(", x);
715 715
     SERIAL_ECHOPAIR(", ", y);
716 716
     SERIAL_ECHOPAIR(", ", z);
717
-    SERIAL_ECHOPGM(")");
717
+    SERIAL_CHAR(')');
718 718
 
719 719
     if (suffix) serialprintPGM(suffix);
720 720
     else SERIAL_EOL;
@@ -10589,9 +10589,9 @@ void setup() {
10589 10589
   #endif
10590 10590
 
10591 10591
   #if ENABLED(RGB_LED)
10592
-    pinMode(RGB_LED_R_PIN, OUTPUT);
10593
-    pinMode(RGB_LED_G_PIN, OUTPUT);
10594
-    pinMode(RGB_LED_B_PIN, OUTPUT);
10592
+    SET_OUTPUT(RGB_LED_R_PIN);
10593
+    SET_OUTPUT(RGB_LED_G_PIN);
10594
+    SET_OUTPUT(RGB_LED_B_PIN);
10595 10595
   #endif
10596 10596
 
10597 10597
   lcd_init();

+ 2
- 2
Marlin/printcounter.cpp View File

@@ -120,7 +120,7 @@ void PrintCounter::showStats() {
120 120
   #if ENABLED(DEBUG_PRINTCOUNTER)
121 121
     SERIAL_ECHOPGM(" (");
122 122
     SERIAL_ECHO(this->data.printTime);
123
-    SERIAL_ECHOPGM(")");
123
+    SERIAL_CHAR(')');
124 124
   #endif
125 125
 
126 126
   elapsed = this->data.longestPrint;
@@ -132,7 +132,7 @@ void PrintCounter::showStats() {
132 132
   #if ENABLED(DEBUG_PRINTCOUNTER)
133 133
     SERIAL_ECHOPGM(" (");
134 134
     SERIAL_ECHO(this->data.longestPrint);
135
-    SERIAL_ECHOPGM(")");
135
+    SERIAL_CHAR(')');
136 136
   #endif
137 137
 
138 138
   SERIAL_EOL;

Loading…
Cancel
Save