diff --git a/Kconfig b/Kconfig index 13d6122..20cd366 100644 --- a/Kconfig +++ b/Kconfig @@ -31,11 +31,16 @@ menu "WebGUIApp" config DEBUG_MODE_ENABLE bool "Enabled JTAG debug" - default n + default y help Switch on JTAG debug mode. Otherwise pins 12-15 used as normal GPIO - + config RESET_MODE_ENABLE + bool "Enabled RESET on boot" + default n + help + This will reset to default settings on every startup + menu "SPI settings" config WEBGUIAPP_SPI_ENABLE bool "Enabled SPI interface" diff --git a/src/SystemConfiguration.c b/src/SystemConfiguration.c index 18a2479..006882a 100644 --- a/src/SystemConfiguration.c +++ b/src/SystemConfiguration.c @@ -45,7 +45,11 @@ #define STORAGE_NAMESPACE "storage" #define TAG "SystemConfiguration" +#ifdef CONFIG_RESET_MODE_ENABLE +#define MANUAL_RESET 1 +#else #define MANUAL_RESET 0 +#endif #ifdef CONFIG_USERDEFINED_MAIN_FUNCTIONAL_BUTTON_GPIO #define MAIN_FUNCTIONAL_BUTTON_GPIO CONFIG_USERDEFINED_MAIN_FUNCTIONAL_BUTTON_GPIO