static void lcd_laser_menu() { START_MENU(); MENU_ITEM(back, MSG_MAIN, lcd_main_menu); MENU_ITEM(submenu, "Set Focus", lcd_laser_focus_menu); MENU_ITEM(submenu, "Test Fire", lcd_laser_test_fire_menu); #ifdef LASER_PERIPHERALS if (laser_peripherals_ok()) { MENU_ITEM(function, "Turn On Pumps/Fans", action_laser_acc_on); } else if (!(movesplanned() || IS_SD_PRINTING)) { MENU_ITEM(function, "Turn Off Pumps/Fans", action_laser_acc_off); } #endif // LASER_PERIPHERALS END_MENU(); }
void laser_wait_for_peripherals() { unsigned long timeout = millis() + LASER_PERIPHERALS_TIMEOUT; if (laser.diagnostics) { SERIAL_ECHO_START; SERIAL_ECHOLNPGM("Waiting for peripheral control board signal..."); } while(!laser_peripherals_ok()) { if (millis() > timeout) { if (laser.diagnostics) { SERIAL_ERROR_START; SERIAL_ERRORLNPGM("Peripheral control board failed to respond"); } Stop(); break; } } }