From 90a58488b50862563f82338c4fa47bdf22e434ce Mon Sep 17 00:00:00 2001 From: Ludy Date: Tue, 20 Nov 2018 06:59:48 +0100 Subject: [PATCH] Corrected unused var, default switch, Travis tests (#12477) --- Marlin/src/HAL/shared/I2cEeprom.cpp | 1 - Marlin/src/module/tool_change.cpp | 2 ++ buildroot/share/tests/LPC1768_tests | 2 +- buildroot/share/tests/megaatmega2560_tests | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Marlin/src/HAL/shared/I2cEeprom.cpp b/Marlin/src/HAL/shared/I2cEeprom.cpp index 921c7ff903..02a201c9ef 100644 --- a/Marlin/src/HAL/shared/I2cEeprom.cpp +++ b/Marlin/src/HAL/shared/I2cEeprom.cpp @@ -129,7 +129,6 @@ void eeprom_update_block(const void *pos, void* eeprom_address, size_t n) { uint8_t eeprom_read_byte(uint8_t *pos) { - byte data = 0xFF; unsigned eeprom_address = (unsigned)pos; eeprom_init(); diff --git a/Marlin/src/module/tool_change.cpp b/Marlin/src/module/tool_change.cpp index da0d6afbf5..ba500c5713 100644 --- a/Marlin/src/module/tool_change.cpp +++ b/Marlin/src/module/tool_change.cpp @@ -479,6 +479,8 @@ inline void invalid_extruder_error(const uint8_t e) { active_extruder_parked = true; delayed_move_time = 0; break; + default: + break; } #if ENABLED(DEBUG_LEVELING_FEATURE) diff --git a/buildroot/share/tests/LPC1768_tests b/buildroot/share/tests/LPC1768_tests index 9e3882a299..371619b04d 100755 --- a/buildroot/share/tests/LPC1768_tests +++ b/buildroot/share/tests/LPC1768_tests @@ -55,7 +55,7 @@ opt_enable COREYX USE_XMAX_PLUG DAC_MOTOR_CURRENT_DEFAULT \ SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER FAN_KICKSTART_TIME \ ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \ VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \ - EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \ + EXTRA_FAN_SPEED FWRETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \ MENU_ADDAUTOSTART SDCARD_SORT_ALPHA opt_set FAN_MIN_PWM 50 opt_set FAN_KICKSTART_TIME 100 diff --git a/buildroot/share/tests/megaatmega2560_tests b/buildroot/share/tests/megaatmega2560_tests index d234a42584..501eb8d96c 100755 --- a/buildroot/share/tests/megaatmega2560_tests +++ b/buildroot/share/tests/megaatmega2560_tests @@ -157,7 +157,7 @@ opt_enable COREYX USE_XMAX_PLUG \ SHOW_TEMP_ADC_VALUES HOME_Y_BEFORE_X EMERGENCY_PARSER \ ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED ADVANCED_OK \ VOLUMETRIC_DEFAULT_ON NO_WORKSPACE_OFFSETS ACTION_ON_KILL \ - EXTRA_FAN_SPEED FWERETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \ + EXTRA_FAN_SPEED FWRETRACT Z_DUAL_STEPPER_DRIVERS Z_DUAL_ENDSTOPS \ MENU_ADDAUTOSTART SDCARD_SORT_ALPHA opt_set FAN_MIN_PWM 50 opt_set FAN_KICKSTART_TIME 100