Skip to content

Commit 6d22ab3

Browse files
committed
improve comment on UTC-offset
1 parent b907a15 commit 6d22ab3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ttblue.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,8 @@ int main(int argc, const char **argv)
546546
if ((length = tt_read_file(ttd, ttd->files->manifest, debug, &fbuf)) < 0) {
547547
fprintf(stderr, "WARNING: Could not read settings manifest file 0x%08x from watch!\n", ttd->files->manifest);
548548
} else {
549-
// based on ttwatch/libttwatch/libttwatch.h, ttwatch/ttwatch/manifest_definitions.h
549+
// based on: https://github.com/ryanbinns/ttwatch/tree/master/manifest
550+
// the position of the UTC-offset in the manifest is 169 in all known firmware versions, so lazily hard-coded here for now
550551
int32_t *watch_timezone = NULL;
551552
for (int16_t *index = (int16_t*)(fbuf+4); index < (int16_t*)(fbuf+length); index += 3) {
552553
if (btohl(*index) == 169) {

0 commit comments

Comments
 (0)