From 729320258f95fd9d5aecb3e7d1913c94eff9bf74 Mon Sep 17 00:00:00 2001
From: giedriuslt <123905703+giedriuslt@users.noreply.github.com>
Date: Tue, 6 Feb 2024 09:20:04 +0200
Subject: [PATCH] Add internal temperature for Beken chipd (#1065)
* Add internal temperature for Beken chipd
* Don't fetch temperature in safe mode
---
src/httpserver/http_fns.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
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, "