Fix compilation crash orz

This commit is contained in:
Luc 2022-06-17 16:56:50 +08:00
parent c09ec2c7a2
commit e03067c8da

View File

@ -19,7 +19,7 @@
*/ */
#include "../../include/esp3d_config.h" #include "../../include/esp3d_config.h"
#ifdef RECOVERY_FEATURE #if defined(RECOVERY_FEATURE)
#include "recovery_service.h" #include "recovery_service.h"
#include "../../core/settings_esp3d.h" #include "../../core/settings_esp3d.h"
#include "../../core/esp3doutput.h" #include "../../core/esp3doutput.h"
@ -61,6 +61,7 @@ void handlePinResetInterrupt()
#if defined(ESP3D_RESET_PIN) && ESP3D_RESET_PIN !=-1 #if defined(ESP3D_RESET_PIN) && ESP3D_RESET_PIN !=-1
pinMode(ESP3D_RESET_PIN, INPUT_PULLUP); pinMode(ESP3D_RESET_PIN, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(ESP3D_RESET_PIN), handlePinResetInterrupt, FALLING); attachInterrupt(digitalPinToInterrupt(ESP3D_RESET_PIN), handlePinResetInterrupt, FALLING);
#endif //ESP3D_RESET_PIN
#endif //PIN_RESET_FEATURE #endif //PIN_RESET_FEATURE
if (!res) { if (!res) {
end(); end();