mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
lol
This commit is contained in:
@@ -154,7 +154,7 @@ void calculate_dcf77_bits(time_t now, int *bits) {
|
|||||||
bits[28] = parity;
|
bits[28] = parity;
|
||||||
|
|
||||||
// Bits 29-34: Hours (BCD encoded)
|
// 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
|
hours += 1; // UTC to CET
|
||||||
if(cest) hours += 1; // CET to CEST
|
if(cest) hours += 1; // CET to CEST
|
||||||
bits[29] = (hours % 10) & 0x01;
|
bits[29] = (hours % 10) & 0x01;
|
||||||
|
|||||||
Reference in New Issue
Block a user