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-28 13:18:15 +01:00
parent 57fbf5630c
commit d2393dc2e7

View File

@@ -188,11 +188,11 @@ void calculate_dcf77_bits(time_t now, int *bits) {
bits[54 + i] = (year / 10 >> i) & 1;
}
int hour_parity = 0;
int year_parity = 0;
for (int i = 36; i <= 57; i++) {
hour_parity ^= bits[i];
year_parity ^= bits[i];
}
bits[58] = hour_parity;
bits[58] = year_parity;
bits[59] = 2;
}