mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 08:46:34 +00:00
Whitespace fix (dtostrf) for lat/lon.
This commit is contained in:
parent
8320ed5a92
commit
6bfdf0eb4d
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// 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
|
//uncomment this if you have a "my_config.h" file you'd like to use
|
||||||
//#define WLED_USE_MY_CONFIG
|
//#define WLED_USE_MY_CONFIG
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#include "wled.h"
|
#include "wled.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sending XML status files to client
|
* Sending XML status files to client
|
||||||
@ -444,9 +445,9 @@ void getSettingsJS(byte subPage, char* dest)
|
|||||||
sappend('i',SET_F("TZ"),currentTimezone);
|
sappend('i',SET_F("TZ"),currentTimezone);
|
||||||
sappend('v',SET_F("UO"),utcOffsetSecs);
|
sappend('v',SET_F("UO"),utcOffsetSecs);
|
||||||
char tm[32];
|
char tm[32];
|
||||||
dtostrf(longitude,5,2,tm);
|
dtostrf(longitude,4,2,tm);
|
||||||
sappends('s',SET_F("LN"),tm);
|
sappends('s',SET_F("LN"),tm);
|
||||||
dtostrf(latitude,5,2,tm);
|
dtostrf(latitude,4,2,tm);
|
||||||
sappends('s',SET_F("LT"),tm);
|
sappends('s',SET_F("LT"),tm);
|
||||||
getTimeString(tm);
|
getTimeString(tm);
|
||||||
sappends('m',SET_F("(\"times\")[0]"),tm);
|
sappends('m',SET_F("(\"times\")[0]"),tm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user