diff --git a/src/httpserver/http_fns.c b/src/httpserver/http_fns.c index 7fb352b0a..582e58d77 100644 --- a/src/httpserver/http_fns.c +++ b/src/httpserver/http_fns.c @@ -33,6 +33,7 @@ static char SUBMIT_AND_END_FORM[] = "
Cfg size: %i, change counter: %i, ota counter: %i, boot incompletes %i (might change to 0 if you wait to 30 sec)!", sizeof(g_cfg), g_cfg.changeCounter, g_cfg.otaCounter, g_bootFailures); -#if PLATFORM_LN882H +#if PLATFORM_BEKEN + if(!bSafeMode && g_bootFailures <= 1) // only in Normal mode, and if boot is not failing + { + UINT32 temperature; + temp_single_get_current_temperature(&temperature); + hprintf255(request, "
Internal temperature: %lu
", + temperature); + } +#elif PLATFORM_LN882H // Quick hack to display LN-only temperature, // we may improve it in the future extern float g_wifi_temperature; - hprintf255(request, "
LN temp: %f
", + hprintf255(request, "
Internal temperature: %f
", g_wifi_temperature); #endif