diff options
Diffstat (limited to 'shared-bindings/rtc/RTC.c')
| -rw-r--r-- | shared-bindings/rtc/RTC.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shared-bindings/rtc/RTC.c b/shared-bindings/rtc/RTC.c index aeedad12d..a0e9be302 100644 --- a/shared-bindings/rtc/RTC.c +++ b/shared-bindings/rtc/RTC.c @@ -34,13 +34,14 @@ #include "shared-bindings/rtc/__init__.h" #include "shared-bindings/rtc/RTC.h" #include "shared-bindings/time/__init__.h" +#include "supervisor/shared/translate.h" void MP_WEAK common_hal_rtc_get_time(timeutils_struct_time_t *tm) { - mp_raise_NotImplementedError("RTC is not supported on this board"); + mp_raise_NotImplementedError(translate("RTC is not supported on this board")); } void MP_WEAK common_hal_rtc_set_time(timeutils_struct_time_t *tm) { - mp_raise_NotImplementedError("RTC is not supported on this board"); + mp_raise_NotImplementedError(translate("RTC is not supported on this board")); } int MP_WEAK common_hal_rtc_get_calibration(void) { @@ -48,7 +49,7 @@ int MP_WEAK common_hal_rtc_get_calibration(void) { } void MP_WEAK common_hal_rtc_set_calibration(int calibration) { - mp_raise_NotImplementedError("RTC calibration is not supported on this board"); + mp_raise_NotImplementedError(translate("RTC calibration is not supported on this board")); } const rtc_rtc_obj_t rtc_rtc_obj = {{&rtc_rtc_type}}; |
