🎨 Check flags without ENABLED
This commit is contained in:
@@ -622,7 +622,7 @@ void DGUSScreenHandler::HandleHeaterControl(DGUS_VP_Variable &var, void *val_ptr
|
||||
DEBUG_ECHOLNPGM("HandlePreheat");
|
||||
|
||||
uint8_t e_temp = 0;
|
||||
#if ENABLED(HAS_HEATED_BED)
|
||||
#if HAS_HEATED_BED
|
||||
uint8_t bed_temp = 0;
|
||||
#endif
|
||||
const uint16_t preheat_option = swap16(*(uint16_t*)val_ptr);
|
||||
|
@@ -35,7 +35,7 @@
|
||||
#include "../../ui_api.h"
|
||||
#include "../../../marlinui.h"
|
||||
|
||||
#if ENABLED(HAS_STEALTHCHOP)
|
||||
#if HAS_STEALTHCHOP
|
||||
#include "../../../../module/stepper/trinamic.h"
|
||||
#endif
|
||||
|
||||
|
@@ -37,7 +37,7 @@
|
||||
|
||||
#include "../../../../gcode/gcode.h"
|
||||
|
||||
#if ENABLED(HAS_STEALTHCHOP)
|
||||
#if HAS_STEALTHCHOP
|
||||
#include "../../../../module/stepper/trinamic.h"
|
||||
#include "../../../../module/stepper/indirection.h"
|
||||
#endif
|
||||
@@ -396,7 +396,7 @@ void DGUSScreenHandler::Z_offset_select(DGUS_VP_Variable &var, void *val_ptr) {
|
||||
|
||||
void DGUSScreenHandler::GetOffsetValue(DGUS_VP_Variable &var, void *val_ptr) {
|
||||
|
||||
#if ENABLED(HAS_BED_PROBE)
|
||||
#if HAS_BED_PROBE
|
||||
int32_t value = swap32(*(int32_t *)val_ptr);
|
||||
float Offset = value / 100.0f;
|
||||
DEBUG_ECHOLNPAIR_F("\nget int6 offset >> ", value, 6);
|
||||
|
Reference in New Issue
Block a user