rtc: log error message when driver initialisation fails
This commit is contained in:
parent
cd98516cae
commit
fb7475bf59
1 changed files with 2 additions and 0 deletions
2
rtc.c
2
rtc.c
|
@ -148,6 +148,8 @@ RTC_Initialise(int initial_set)
|
||||||
if (driver.init) {
|
if (driver.init) {
|
||||||
if ((driver.init)()) {
|
if ((driver.init)()) {
|
||||||
driver_initialised = 1;
|
driver_initialised = 1;
|
||||||
|
} else {
|
||||||
|
LOG(LOGS_ERR, "RTC driver could not be initialised");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG(LOGS_ERR, "RTC not supported on this operating system");
|
LOG(LOGS_ERR, "RTC not supported on this operating system");
|
||||||
|
|
Loading…
Reference in a new issue