Преглед на файлове

Fixed BABYSTEPPING feature

Moved PSTR() macro to correct place which was causing the " initializer fails to determine size of '__c' " when attempting to compile with BABYSTEPPING enabled.
NarimaanV преди 10 години
родител
ревизия
7667949aca
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      Marlin/ultralcd.cpp

+ 4
- 4
Marlin/ultralcd.cpp Целия файл

@@ -368,12 +368,12 @@ void lcd_set_home_offsets()
368 368
       encoderPosition = 0;
369 369
       lcdDrawUpdate = 1;
370 370
     }
371
-    if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR(msg), "");
371
+    if (lcdDrawUpdate) lcd_implementation_drawedit(msg, "");
372 372
     if (LCD_CLICKED) lcd_goto_menu(lcd_tune_menu);
373 373
   }
374
-  static void lcd_babystep_x() { _lcd_babystep(X_AXIS, MSG_BABYSTEPPING_X); }
375
-  static void lcd_babystep_y() { _lcd_babystep(Y_AXIS, MSG_BABYSTEPPING_Y); }
376
-  static void lcd_babystep_z() { _lcd_babystep(Z_AXIS, MSG_BABYSTEPPING_Z); }
374
+  static void lcd_babystep_x() { _lcd_babystep(X_AXIS, PSTR(MSG_BABYSTEPPING_X)); }
375
+  static void lcd_babystep_y() { _lcd_babystep(Y_AXIS, PSTR(MSG_BABYSTEPPING_Y)); }
376
+  static void lcd_babystep_z() { _lcd_babystep(Z_AXIS, PSTR(MSG_BABYSTEPPING_Z)); }
377 377
 
378 378
 #endif //BABYSTEPPING
379 379
 

Loading…
Отказ
Запис