mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Fix ExtUI compile warnings and error (#12799)
This commit is contained in:
parent
74c47803f7
commit
81e753064a
@ -215,7 +215,9 @@ void GcodeSuite::M420() {
|
||||
// Enable leveling if specified, or if previously active
|
||||
set_bed_leveling_enabled(to_enable);
|
||||
|
||||
EXIT_M420:
|
||||
#if HAS_MESH
|
||||
EXIT_M420:
|
||||
#endif
|
||||
|
||||
// Error if leveling failed to enable or reenable
|
||||
if (to_enable && !planner.leveling_active)
|
||||
|
@ -635,14 +635,14 @@ namespace ExtUI {
|
||||
pos;
|
||||
|
||||
card.getfilename_sorted(nr);
|
||||
return card.filename && card.filename[0] != '\0';
|
||||
return card.filename[0] != '\0';
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
const char* FileList::filename() {
|
||||
return IFSD(card.longFilename && card.longFilename[0] ? card.longFilename : card.filename, "");
|
||||
return IFSD(card.longFilename[0] ? card.longFilename : card.filename, "");
|
||||
}
|
||||
|
||||
const char* FileList::shortFilename() {
|
||||
|
@ -618,7 +618,7 @@ class Temperature {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
#if ENABLED(ULTRA_LCD) || ENABLED(EXTENSIBLE_UI)
|
||||
static void set_heating_message(const uint8_t e);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user