Fix a crash on Native reboot (#7570)

pull/7576/head
Jonathan Bennett 2025-08-07 12:28:01 -05:00 zatwierdzone przez GitHub
rodzic f2a880f813
commit 8568b56ac6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
2 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -724,10 +724,12 @@ void Power::reboot()
SPI.end();
Wire.end();
Serial1.end();
if (screen)
if (screen) {
delete screen;
screen = nullptr;
}
LOG_DEBUG("final reboot!");
reboot();
::reboot();
#elif defined(ARCH_STM32WL)
HAL_NVIC_SystemReset();
#else

Wyświetl plik

@ -17,7 +17,10 @@ void initApiServer(int port)
}
void deInitApiServer()
{
delete apiPort;
if (apiPort) {
delete apiPort;
apiPort = nullptr;
}
}
WiFiServerAPI::WiFiServerAPI(WiFiClient &_client) : ServerAPI(_client)