rtc: log error message when driver initialisation fails

This commit is contained in:
Michael Witten 2020-12-15 10:44:19 +01:00 committed by Miroslav Lichvar
parent cd98516cae
commit fb7475bf59

2
rtc.c
View file

@ -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");