mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 18:10:38 +08:00
Fix compilation crash orz
This commit is contained in:
parent
c09ec2c7a2
commit
e03067c8da
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user