Skip to content

Commit ff6395f

Browse files
committed
workaround for problem with adafruit#1046
the __weak linking works fine so long as these functions are not identical. I have not yet worked out why.
1 parent b09d2c3 commit ff6395f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

shared-bindings/rtc/RTC.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@
3636
#include "shared-bindings/time/__init__.h"
3737
#include "supervisor/shared/translate.h"
3838

39-
/*
4039
void MP_WEAK common_hal_rtc_get_time(timeutils_struct_time_t *tm) {
41-
mp_raise_NotImplementedError(translate("RTC is not supported on this board"));
40+
mp_raise_NotImplementedError(translate("RTC get is not supported on this board"));
4241
}
4342

4443
void MP_WEAK common_hal_rtc_set_time(timeutils_struct_time_t *tm) {
45-
mp_raise_NotImplementedError(translate("RTC is not supported on this board"));
44+
mp_raise_NotImplementedError(translate("RTC set is not supported on this board"));
4645
}
4746

4847
int MP_WEAK common_hal_rtc_get_calibration(void) {
@@ -52,7 +51,7 @@ int MP_WEAK common_hal_rtc_get_calibration(void) {
5251
void MP_WEAK common_hal_rtc_set_calibration(int calibration) {
5352
mp_raise_NotImplementedError(translate("RTC calibration is not supported on this board"));
5453
}
55-
*/
54+
5655

5756
const rtc_rtc_obj_t rtc_rtc_obj = {{&rtc_rtc_type}};
5857

0 commit comments

Comments
 (0)