From fb7475bf5902e823100a443bd242cad242a5c6c0 Mon Sep 17 00:00:00 2001 From: Michael Witten Date: Tue, 15 Dec 2020 10:44:19 +0100 Subject: [PATCH] rtc: log error message when driver initialisation fails --- rtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtc.c b/rtc.c index fa83173..d946541 100644 --- a/rtc.c +++ b/rtc.c @@ -148,6 +148,8 @@ RTC_Initialise(int initial_set) if (driver.init) { if ((driver.init)()) { driver_initialised = 1; + } else { + LOG(LOGS_ERR, "RTC driver could not be initialised"); } } else { LOG(LOGS_ERR, "RTC not supported on this operating system");