Fix some DOGM warnings (#16363)
This commit is contained in:
parent
0be8b22d3c
commit
92ad973729
|
@ -1368,7 +1368,7 @@
|
||||||
#define STATUS_LOGO_X 0
|
#define STATUS_LOGO_X 0
|
||||||
#endif
|
#endif
|
||||||
#ifndef STATUS_LOGO_Y
|
#ifndef STATUS_LOGO_Y
|
||||||
#define STATUS_LOGO_Y _MIN(0, 10 - (STATUS_LOGO_HEIGHT) / 2)
|
#define STATUS_LOGO_Y _MIN(0U, (10 - (STATUS_LOGO_HEIGHT) / 2))
|
||||||
#endif
|
#endif
|
||||||
#ifndef STATUS_LOGO_HEIGHT
|
#ifndef STATUS_LOGO_HEIGHT
|
||||||
#define STATUS_LOGO_HEIGHT (sizeof(status_logo_bmp) / (STATUS_LOGO_BYTEWIDTH))
|
#define STATUS_LOGO_HEIGHT (sizeof(status_logo_bmp) / (STATUS_LOGO_BYTEWIDTH))
|
||||||
|
|
|
@ -235,13 +235,15 @@ FORCE_INLINE void _draw_centered_temp(const int16_t temp, const uint8_t tx, cons
|
||||||
UNUSED(blink);
|
UNUSED(blink);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const bool isHeat = BED_ALT();
|
|
||||||
|
|
||||||
const uint8_t tx = STATUS_BED_TEXT_X;
|
const uint8_t tx = STATUS_BED_TEXT_X;
|
||||||
|
|
||||||
const float temp = thermalManager.degBed(),
|
const float temp = thermalManager.degBed(),
|
||||||
target = thermalManager.degTargetBed();
|
target = thermalManager.degTargetBed();
|
||||||
|
|
||||||
|
#if ENABLED(STATUS_HEAT_PERCENT) || (DO_DRAW_BED && DISABLED(STATUS_BED_ANIM))
|
||||||
|
const bool isHeat = BED_ALT();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if DO_DRAW_BED && DISABLED(STATUS_BED_ANIM)
|
#if DO_DRAW_BED && DISABLED(STATUS_BED_ANIM)
|
||||||
#define STATIC_BED true
|
#define STATIC_BED true
|
||||||
#define BED_DOT isHeat
|
#define BED_DOT isHeat
|
||||||
|
|
Loading…
Reference in a new issue