fixing a few implicit promotions to double

any expression with at least on "double" is evaluated as double, which is slow.
This commit is contained in:
Frank
2023-09-09 20:48:17 +02:00
parent c276515f5a
commit 0fcbefb7a5
5 changed files with 9 additions and 9 deletions

View File

@@ -682,7 +682,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
sappends('s',SET_F("LT"),tm);
getTimeString(tm);
sappends('m',SET_F("(\"times\")[0]"),tm);
if ((int)(longitude*10.) || (int)(latitude*10.)) {
if ((int)(longitude*10.0f) || (int)(latitude*10.0f)) {
snprintf_P(tm, sizeof(tm), PSTR("Sunrise: %02d:%02d Sunset: %02d:%02d"), hour(sunrise), minute(sunrise), hour(sunset), minute(sunset));
sappends('m',SET_F("(\"times\")[1]"),tm);
}