From e03067c8dacc1ca011cb59307f08df4101747c23 Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Fri, 17 Jun 2022 16:56:50 +0800 Subject: [PATCH] Fix compilation crash orz --- esp3d/src/modules/recovery/recovery_service.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp3d/src/modules/recovery/recovery_service.cpp b/esp3d/src/modules/recovery/recovery_service.cpp index 7ab3e903..3223a0b4 100644 --- a/esp3d/src/modules/recovery/recovery_service.cpp +++ b/esp3d/src/modules/recovery/recovery_service.cpp @@ -19,7 +19,7 @@ */ #include "../../include/esp3d_config.h" -#ifdef RECOVERY_FEATURE +#if defined(RECOVERY_FEATURE) #include "recovery_service.h" #include "../../core/settings_esp3d.h" #include "../../core/esp3doutput.h" @@ -61,6 +61,7 @@ void handlePinResetInterrupt() #if defined(ESP3D_RESET_PIN) && ESP3D_RESET_PIN !=-1 pinMode(ESP3D_RESET_PIN, INPUT_PULLUP); attachInterrupt(digitalPinToInterrupt(ESP3D_RESET_PIN), handlePinResetInterrupt, FALLING); +#endif //ESP3D_RESET_PIN #endif //PIN_RESET_FEATURE if (!res) { end();