From 27e9765a662d6704f3ac8ab79f14c1bf7fbb060d Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 18 Nov 2019 12:25:59 +0100 Subject: [PATCH] Update xdrv_09_timers.ino --- tasmota/xdrv_09_timers.ino | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tasmota/xdrv_09_timers.ino b/tasmota/xdrv_09_timers.ino index 83f830379..a71960695 100644 --- a/tasmota/xdrv_09_timers.ino +++ b/tasmota/xdrv_09_timers.ino @@ -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