From 6bfdf0eb4d56a8d29711f1f8127cea6d9d266230 Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sun, 7 Mar 2021 20:50:54 +0100 Subject: [PATCH] Whitespace fix (dtostrf) for lat/lon. --- wled00/wled.h | 2 +- wled00/xml.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wled00/wled.h b/wled00/wled.h index 4ca18783b..d5e0ba1fb 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2103073 +#define VERSION 2103074 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 64a104e6a..bba955a0e 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -1,4 +1,5 @@ #include "wled.h" +#include /* * Sending XML status files to client @@ -444,9 +445,9 @@ void getSettingsJS(byte subPage, char* dest) sappend('i',SET_F("TZ"),currentTimezone); sappend('v',SET_F("UO"),utcOffsetSecs); char tm[32]; - dtostrf(longitude,5,2,tm); + dtostrf(longitude,4,2,tm); sappends('s',SET_F("LN"),tm); - dtostrf(latitude,5,2,tm); + dtostrf(latitude,4,2,tm); sappends('s',SET_F("LT"),tm); getTimeString(tm); sappends('m',SET_F("(\"times\")[0]"),tm);