HomeFreeBSD

Fix AM/PM mode handling. The bits to mask off in the hours register changes

Description

Fix AM/PM mode handling. The bits to mask off in the hours register changes
between 12/24 hour mode. Also fix conversion between 12 and 24 hour mode.
It's not as easy as adding/subtracting 12, because the clock doesn't roll
over 11->0, it rolls over 12->1; 0 isn't a valid hour in AM/PM mode.

Details

Provenance
ianAuthored on
Parents
rS321726: Bugfixes and enhancements...
Branches
Unknown
Tags
Unknown