added local time characteristic #4

Merged
Elara6331 merged 5 commits from cybuzuma/infinitime:gatt_localtime into master 2022-11-21 16:51:50 +00:00
Showing only changes of commit ee06b34281 - Show all commits

View File

@ -725,7 +725,7 @@ func (i *Device) SetTimezone(t time.Time) error {
dst := 0
if t.IsDST() {
dst = 3600
offset = offset - 3600
offset -= 3600
}
buf := &bytes.Buffer{}
binary.Write(buf, binary.LittleEndian, uint8(offset / 3600 * 4))