]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Bugfix: don't lose the am/pm mode flag when setting the time. Unlike most
authorIan Lepore <ian@FreeBSD.org>
Wed, 10 Jan 2018 02:31:59 +0000 (02:31 +0000)
committerIan Lepore <ian@FreeBSD.org>
Wed, 10 Jan 2018 02:31:59 +0000 (02:31 +0000)
commitb33d84e0059866244c61543e51621e93986c219f
tree3b055490d8c928abecbccd56c21abcb19f7c9db2
parentb93c58e168a888babfa342747d5215c86fc0d624
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.
sys/dev/iicbus/ds13rtc.c