From c15d422f75231f826c3eac4dc9e096d1de883329 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 1 Apr 2018 09:56:47 -0700 Subject: [PATCH] Suunto EON Steel: set date too when doing device timesync I'd never noticed this before, since my date had always been already set correctly, but the timesync with the EON Steel only set the time, not the date. The fix is trivial, since the code already filled in the datetime data, it just didn't do the SET_DATE command. Signed-off-by: Linus Torvalds --- src/suunto_eonsteel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/suunto_eonsteel.c b/src/suunto_eonsteel.c index bac7e22..17d47d5 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -782,6 +782,11 @@ static dc_status_t suunto_eonsteel_device_timesync(dc_device_t *abstract, const return DC_STATUS_IO; } + rc = send_receive(eon, CMD_SET_DATE, sizeof(cmd), cmd, sizeof(result), result); + if (rc < 0) { + return DC_STATUS_IO; + } + return DC_STATUS_SUCCESS; }