From d02f1c3cdcc6a04d085538578d872ec6e3282382 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 f9ded4d..77d319d 100644 --- a/src/suunto_eonsteel.c +++ b/src/suunto_eonsteel.c @@ -939,6 +939,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; }