mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Update xdrv_09_timers.ino
This commit is contained in:
parent
14f6f6f22b
commit
27e9765a66
@ -497,9 +497,7 @@ void CmndLongitude(void)
|
||||
if (XdrvMailbox.data_len) {
|
||||
Settings.longitude = (int)(CharToFloat(XdrvMailbox.data) *1000000);
|
||||
}
|
||||
char lbuff[33];
|
||||
dtostrfd(((float)Settings.longitude) /1000000, 6, lbuff);
|
||||
ResponseCmndChar(lbuff);
|
||||
ResponseCmndFloat((float)(Settings.longitude) /1000000, 6);
|
||||
}
|
||||
|
||||
void CmndLatitude(void)
|
||||
@ -507,9 +505,7 @@ void CmndLatitude(void)
|
||||
if (XdrvMailbox.data_len) {
|
||||
Settings.latitude = (int)(CharToFloat(XdrvMailbox.data) *1000000);
|
||||
}
|
||||
char lbuff[33];
|
||||
dtostrfd(((float)Settings.latitude) /1000000, 6, lbuff);
|
||||
ResponseCmndChar(lbuff);
|
||||
ResponseCmndFloat((float)(Settings.latitude) /1000000, 6);
|
||||
}
|
||||
#endif // USE_SUNRISE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user