SI4735
SI4735 copied to clipboard
Incorrect sign of time zone offset in getRdsTime()
Describe the bug getRdsTime() returns a string such as 13:51 -02:00 but it should be 13:51 +02:00 My time zone is +02:00 and the FM station broadcasts correct time zone (verified using another radio)
To Reproduce Watch what getRdsTime() returns for your time zone
Expected behavior Returned time zone should be +02:00 instead of -02:00
Screenshots
On another radio:
On pu2clr:
Please, add the following information):
- Arduino IDE version - none, just Microchip Studio
- Arduino Board - none, just a bare atmega328 chip
- Library version - latest
Additional context
In getRedTime() method, fix this line:
offset_sign = (dt.refined.offset_sense == 1) ? '+' : '-';
like this:
offset_sign = (dt.refined.offset_sense == 1) ? '-' : '+';