mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-12 20:25:53 +00:00
Make temperature readable (#1066)
This commit is contained in:
@ -756,15 +756,15 @@ int http_fn_index(http_request_t* request) {
|
||||
{
|
||||
UINT32 temperature;
|
||||
temp_single_get_current_temperature(&temperature);
|
||||
hprintf255(request, "<h5>Internal temperature: %lu</h5>",
|
||||
temperature);
|
||||
hprintf255(request, "<h5>Internal temperature: %.1f°C</h5>",
|
||||
temperature/10.0f);
|
||||
}
|
||||
#elif PLATFORM_LN882H
|
||||
// Quick hack to display LN-only temperature,
|
||||
// we may improve it in the future
|
||||
extern float g_wifi_temperature;
|
||||
|
||||
hprintf255(request, "<h5>Internal temperature: %f</h5>",
|
||||
hprintf255(request, "<h5>Internal temperature: %f°C</h5>",
|
||||
g_wifi_temperature);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user