Skip to content
Commit 9e8c00f2 authored by Adrien Bruant's avatar Adrien Bruant Committed by Carles Cufí
Browse files

drivers: stm32-rtc: return -ENODATA when RTC is uninitialized



rtc_get_time() on STM32 does not implement the -ENODATA return code.
This prevents testing the initialisation status of the RTC.

Fixed by reading INITS flag and adding a error path in
rtc_stm32_get_time().

Signed-off-by: default avatarAdrien Bruant <adrien.bruant@aalberts-hfc.com>
parent 5781b6a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment