mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-04 04:20:38 +08:00
Disable webupdate capability if no ota partition in ESP32
This commit is contained in:
parent
e9b742434f
commit
7a804591c3
@ -215,7 +215,11 @@ bool Commands::ESP800(const char* cmd_params, level_authenticate_type auth_type,
|
|||||||
output->print(",\"WebUpdate\":\"");
|
output->print(",\"WebUpdate\":\"");
|
||||||
}
|
}
|
||||||
#ifdef WEB_UPDATE_FEATURE
|
#ifdef WEB_UPDATE_FEATURE
|
||||||
|
if (ESP_FileSystem::max_update_size()!=0){
|
||||||
output->print("Enabled");
|
output->print("Enabled");
|
||||||
|
} else {
|
||||||
|
output->print("Disabled");
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
output->print("Disabled");
|
output->print("Disabled");
|
||||||
#endif //WEB_UPDATE_FEATURE
|
#endif //WEB_UPDATE_FEATURE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user