mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-04 14:25:27 +00:00
add missing prestate check
This commit is contained in:
@ -232,6 +232,8 @@ void AHT2X_OnEverySecond()
|
||||
|
||||
void AHT2X_AppendInformationToHTTPIndexPage(http_request_t* request, int bPreState)
|
||||
{
|
||||
if (bPreState)
|
||||
return;
|
||||
hprintf255(request, "<h2>AHT2X Temperature=%.1fC, Humidity=%.0f%%</h2>", g_temp, g_humid);
|
||||
if(!isWorking)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user