From 73f39594ead1f723c77cbfb5f0fb613708ee7ece Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Fri, 6 Nov 2020 14:41:17 +0100 Subject: [PATCH] Allow to change boot delay if serial tft is connected (#17) --- library.properties | 2 +- src/esp3dlib.cpp | 6 +++++- src/esp3dlibconfig.h | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/library.properties b/library.properties index a9ab51e..c280781 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ESP3DLib -version=1.0.8 +version=1.0.9 author=Luc Lebosse maintainer=Luc Lebosse, sentence=A 3D printer front end for ESP boards. diff --git a/src/esp3dlib.cpp b/src/esp3dlib.cpp index f6e3648..8362bed 100644 --- a/src/esp3dlib.cpp +++ b/src/esp3dlib.cpp @@ -34,9 +34,13 @@ #include "command.h" Esp3DLib esp3dlib; +#ifndef DELAY_START_ESP3D +#define DELAY_START_ESP3D 100 +#endif //DELAY_START_ESP3D + void ESP3DLibTaskfn( void * parameter ) { - Esp3DLibConfig::wait(100); // Yield to other tasks + Esp3DLibConfig::wait(DELAY_START_ESP3D); // Yield to other tasks WiFiConfig::begin(); for(;;) { WiFiConfig::handle(); diff --git a/src/esp3dlibconfig.h b/src/esp3dlibconfig.h index b9ec66e..b787270 100644 --- a/src/esp3dlibconfig.h +++ b/src/esp3dlibconfig.h @@ -28,7 +28,7 @@ #undef DISABLED #undef _BV //version -#define LIB_VERSION "1.0.8" +#define LIB_VERSION "1.0.9" //Allow to override the default core used by ESP3DLIB #ifndef ESP3DLIB_RUNNING_CORE