HomeFreeBSD

Bugfix: don't lose the am/pm mode flag when setting the time. Unlike most

Description

Bugfix: don't lose the am/pm mode flag when setting the time. Unlike most
RTC chips that have a control register bit for am/pm mode, the DS13xx series
uses one of the high bits in the hour register. Thus, when setting the time
in am/pm mode, the am/pm mode flag has to be ORed into the hour.

Details

Provenance
ianAuthored on
Parents
rS327756: Bugfix: on RTC chips with a 32-bit binary counter, after reading the time,
Branches
Unknown
Tags
Unknown