Fix compilation warnings, errors (#14704)

2.0.x
Marcio Teixeira 5 years ago committed by Scott Lahteine
parent a589456a14
commit 369fb2806d

@ -137,7 +137,7 @@ void initISR(timer16_Sequence_t timer) {
#endif
}
void finISR(timer16_Sequence_t timer) {
void finISR(timer16_Sequence_t) {
#ifdef _useTimer1
TC_Stop(TC_FOR_TIMER1, CHANNEL_FOR_TIMER1);
#endif

@ -37,7 +37,7 @@
// NOTE: IF YOU CHANGE LANGUAGE FILES OR MERGE A FILE WITH CHANGES
//
// ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRALCD" / "SDSUPPORT" #define IN "Configuration.h"
// ==> ALWAYS TRY TO COMPILE MARLIN WITH/WITHOUT "ULTIPANEL" / "ULTRA_LCD" / "SDSUPPORT" #define IN "Configuration.h"
// ==> ALSO TRY ALL AVAILABLE LANGUAGE OPTIONS
// See also http://marlinfw.org/docs/development/lcd_language.html

@ -538,7 +538,7 @@ void MarlinUI::status_screen() {
return;
}
#endif // HAS_LCD_MENU
#endif
#if ENABLED(ULTIPANEL_FEEDMULTIPLY)
@ -802,7 +802,9 @@ void MarlinUI::update() {
card.release();
if (old_sd_status != 2) {
set_status_P(PSTR(MSG_SD_REMOVED));
if (!on_status_screen()) return_to_status();
#if HAS_LCD_MENU
return_to_status();
#endif
}
}

@ -770,8 +770,6 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
if (new_tool == active_extruder) return;
#endif
const uint8_t old_tool = active_extruder;
#if ENABLED(MIXING_EXTRUDER)
UNUSED(no_move);
@ -824,6 +822,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
constexpr bool idex_full_control = false;
#endif
const uint8_t old_tool = active_extruder;
const bool can_move_away = !no_move && !idex_full_control;
#if ENABLED(TOOLCHANGE_FILAMENT_SWAP)

Loading…
Cancel
Save