🎨 Check flags without ENABLED

This commit is contained in:
Scott Lahteine
2021-07-09 17:09:58 -05:00
parent fea4e06484
commit 78c2eb6876
31 changed files with 90 additions and 90 deletions

View File

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

View File

@@ -35,7 +35,7 @@
#include "../../ui_api.h"
#include "../../../marlinui.h"
#if ENABLED(HAS_STEALTHCHOP)
#if HAS_STEALTHCHOP
#include "../../../../module/stepper/trinamic.h"
#endif

View File

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