mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Berry avoid bootloop when Berry is disabled (#23199)
This commit is contained in:
parent
74757ee7da
commit
a47e6f1496
@ -906,6 +906,7 @@ extern "C" bbool BerryBECLoader(const char * url) {
|
|||||||
bool Xdrv52(uint32_t function)
|
bool Xdrv52(uint32_t function)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
if (berry.vm == NULL) { return result; }
|
||||||
|
|
||||||
switch (function) {
|
switch (function) {
|
||||||
case FUNC_SLEEP_LOOP:
|
case FUNC_SLEEP_LOOP:
|
||||||
@ -1029,7 +1030,7 @@ bool Xdrv52(uint32_t function)
|
|||||||
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
case FUNC_WEB_ADD_CONSOLE_BUTTON:
|
||||||
if (XdrvMailbox.index) {
|
if (XdrvMailbox.index) {
|
||||||
XdrvMailbox.index++;
|
XdrvMailbox.index++;
|
||||||
} else if (berry.vm != NULL) {
|
} else {
|
||||||
WSContentSend_P(HTTP_BTN_BERRY_CONSOLE);
|
WSContentSend_P(HTTP_BTN_BERRY_CONSOLE);
|
||||||
HandleBerryBECLoaderButton(); // display buttons to load BEC files
|
HandleBerryBECLoaderButton(); // display buttons to load BEC files
|
||||||
callBerryEventDispatcher(PSTR("web_add_button"), nullptr, 0, nullptr);
|
callBerryEventDispatcher(PSTR("web_add_button"), nullptr, 0, nullptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user