You've already forked TEF6686_ESP32
bug fix for time offsets greater than 8 hours
This commit is contained in:
@@ -1358,7 +1358,7 @@ void TEF6686::readRDS(byte showrdserrors) {
|
||||
|
||||
hour = ((rds.rdsD >> 12) & 0x000f);
|
||||
hour += ((rds.rdsC << 4) & 0x0010);
|
||||
timeoffset = rds.rdsD & 0x000f;
|
||||
timeoffset = rds.rdsD & 0x001f;
|
||||
if (bitRead(rds.rdsD, 5)) timeoffset *= -1;
|
||||
timeoffset *= 1800;
|
||||
minute = (rds.rdsD & 0x0fc0) >> 6;
|
||||
@@ -2089,4 +2089,4 @@ String TEF6686::ucs2ToUtf8(const char* ucs2Input) {
|
||||
}
|
||||
}
|
||||
return utf8Output;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user