Skip to content

Commit

Permalink
Clean up vim droppings
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Dec 1, 2020
1 parent 7beeba8 commit 7942a70
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Marlin/src/lcd/menu/menu_spindle_laser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "../../inc/MarlinConfig.h"

#if (HAS_LCD_MENU && HAS_CUTTER)
#if HAS_LCD_MENU && HAS_CUTTER

#include "menu_item.h"

Expand All @@ -35,7 +35,7 @@
void menu_spindle_laser() {

const bool is_enabled = cutter.enabled() && cutter.isReady;

START_MENU();
BACK_ITEM(MSG_MAIN);
// Messing with a Cutter/Laser manually needs the menu to stay modal
Expand All @@ -46,18 +46,18 @@
// Power is displayed and set in units and range according to CUTTER_POWER_UNIT
EDIT_ITEM_FAST(CUTTER_MENU_POWER_TYPE, MSG_CUTTER(POWER), &cutter.menuPower,
cutter.mpower_min(), cutter.mpower_max(), cutter.update_from_mpower);
#endif
#endif

if (is_enabled)
if (is_enabled)
EDIT_ITEM(bool, MSG_CUTTER(STATE), &cutter.state, cutter.disable);
else {
#if ENABLED(SPINDLE_CHANGE_DIR)
EDIT_ITEM(bool, MSG_CUTTER(STATE), &cutter.state, cutter.enable_reverse);
#else
EDIT_ITEM(bool, MSG_CUTTER(STATE), &cutter.state, cutter.enable_forward);
#endif
}
EDIT_ITEM(bool, MSG_CUTTER(STATE), &cutter.state, cutter.enable_forward);
#endif
}

#if BOTH(MARLIN_DEV_MODE, HAL_CAN_SET_PWM_FREQ) && defined(SPINDLE_LASER_FREQUENCY)
EDIT_ITEM_FAST(CUTTER_MENU_FREQUENCY_TYPE, MSG_CUTTER_FREQUENCY, &cutter.frequency, 2000, 50000, cutter.refresh_frequency);
#endif
Expand Down

0 comments on commit 7942a70

Please sign in to comment.