Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Commit

Permalink
Fix a bug where a bogus month value (15) with a correct parity would …
Browse files Browse the repository at this point in the history
…not turn the date parity bit blue.
  • Loading branch information
Rene Ladan committed Nov 18, 2017
1 parent 154b2fd commit a9a735e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dcf77pi.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ display_time(struct DT_result dt, struct tm time)
mvwchgat(decode_win, 0, 48, 1, A_NORMAL, dt.hour_status ==
eval_parity ? 1 : dt.hour_status == eval_bcd ? 4 : 2, NULL);
mvwchgat(decode_win, 0, 76, 1, A_NORMAL, dt.mday_status ==
eval_parity ? 1 : dt.mday_status == eval_bcd ? 4 : 2, NULL);
eval_parity ? 1 : (dt.mday_status == eval_bcd ||
dt.wday_status == eval_bcd || dt.month_status == eval_bcd ||
dt.year_status == eval_bcd) ? 4 : 2, NULL);
if (dt.leapsecond_status == els_one)
mvwchgat(decode_win, 0, 78, 1, A_NORMAL, 3, NULL);

Expand Down

0 comments on commit a9a735e

Please sign in to comment.