From 7a804591c3bd69bf99beb27302fbe723435e61c1 Mon Sep 17 00:00:00 2001 From: Luc <8822552+luc-github@users.noreply.github.com> Date: Thu, 24 Sep 2020 21:21:27 +0200 Subject: [PATCH] Disable webupdate capability if no ota partition in ESP32 --- esp3d/src/core/espcmd/ESP800.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esp3d/src/core/espcmd/ESP800.cpp b/esp3d/src/core/espcmd/ESP800.cpp index d8393839..1db955bb 100644 --- a/esp3d/src/core/espcmd/ESP800.cpp +++ b/esp3d/src/core/espcmd/ESP800.cpp @@ -215,7 +215,11 @@ bool Commands::ESP800(const char* cmd_params, level_authenticate_type auth_type, output->print(",\"WebUpdate\":\""); } #ifdef WEB_UPDATE_FEATURE - output->print("Enabled"); + if (ESP_FileSystem::max_update_size()!=0){ + output->print("Enabled"); + } else { + output->print("Disabled"); + } #else output->print("Disabled"); #endif //WEB_UPDATE_FEATURE