Browse Source

Fix compilation warnings, errors (#14704)

pull/1/head
Marcio Teixeira 5 years ago
committed by Scott Lahteine
parent
commit
369fb2806d
  1. 2
      Marlin/src/HAL/HAL_DUE/Servo_Due.cpp
  2. 2
      Marlin/src/core/language.h
  3. 6
      Marlin/src/lcd/ultralcd.cpp
  4. 3
      Marlin/src/module/tool_change.cpp

2
Marlin/src/HAL/HAL_DUE/Servo_Due.cpp

@ -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

2
Marlin/src/core/language.h

@ -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

6
Marlin/src/lcd/ultralcd.cpp

@ -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
}
}

3
Marlin/src/module/tool_change.cpp

@ -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