0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-03-09 14:42:09 +01:00
parent c7b7ec2e9d
commit b12c1b94d0

View File

@@ -154,7 +154,7 @@ void calculate_dcf77_bits(time_t now, int *bits) {
bits[28] = parity;
// Bits 29-34: Hours (BCD encoded)
int hours = t->tm_hour;
int hours = t->tm_hour-1; // Not sure why
hours += 1; // UTC to CET
if(cest) hours += 1; // CET to CEST
bits[29] = (hours % 10) & 0x01;