Browse Source

Only display poweron/poweroff if PS_ON_PIN > -1

Guillaume Seguin 11 years ago
parent
commit
76841450c8
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Marlin/ultralcd.cpp

+ 2
- 0
Marlin/ultralcd.cpp View File

@@ -349,12 +349,14 @@ static void lcd_prepare_menu()
349 349
     MENU_ITEM(function, MSG_PREHEAT_PLA, lcd_preheat_pla);
350 350
     MENU_ITEM(function, MSG_PREHEAT_ABS, lcd_preheat_abs);
351 351
     MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
352
+#if PS_ON_PIN > -1
352 353
     if (powersupply)
353 354
     {
354 355
         MENU_ITEM(gcode, MSG_SWITCH_PS_OFF, PSTR("M81"));
355 356
     }else{
356 357
         MENU_ITEM(gcode, MSG_SWITCH_PS_ON, PSTR("M80"));
357 358
     }
359
+#endif
358 360
     MENU_ITEM(submenu, MSG_MOVE_AXIS, lcd_move_menu);
359 361
     END_MENU();
360 362
 }

Loading…
Cancel
Save