Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 421a5ba2 authored by Jan Östlund's avatar Jan Östlund Committed by Alexandre Belloni
Browse files

rtc: bq32k: Fix handling of oscillator failure flag



While the oscillator failure flag is set, the RTC registers
should be considered invalid. bq32k_rtc_read_time() now
returns an error instead of an invalid time.

The failure flag is cleared the next time the clock is set.

Signed-off-by: default avatarJan Östlund <jao@hms.se>
Signed-off-by: default avatarDaniel Romell <daro@hms.se>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 6ed1a51e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment