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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2018-04-01 09:56:47 -07:00
parent 0e0ee16ea6
commit d02f1c3cdc

View File

@ -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;
}