From 9becf09ae8b8749c62fc13e03a6a2431679eef7d Mon Sep 17 00:00:00 2001 From: openshwprojects <85486843+openshwprojects@users.noreply.github.com> Date: Sun, 8 Sep 2024 01:11:07 +0200 Subject: [PATCH] calibrate temperatures reading * Update user_main.c * Update user_main.c * Update user_main.c * Update user_main.c * Update user_main.c --- src/user_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user_main.c b/src/user_main.c index 75a015168..0143ceff7 100644 --- a/src/user_main.c +++ b/src/user_main.c @@ -496,9 +496,9 @@ void Main_OnEverySecond() UINT32 temperature; temp_single_get_current_temperature(&temperature); #if PLATFORM_BK7231T - g_wifi_temperature = temperature / 25.0f; + g_wifi_temperature = 2.21f * (temperature / 25.0f) - 65.91f; #else - g_wifi_temperature = temperature * 0.128f; + g_wifi_temperature = (-0.457f * temperature) + 188.474f; #endif #elif PLATFORM_BL602 get_tsen_adc(&g_wifi_temperature, 0);