driver/rtc/class.c: check the error after rtc_read_time()