Skip to content

Commit 7a30176

Browse files
committed
Fix Build Errors for Other Boards
1 parent 716497c commit 7a30176

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shared-bindings/microcontroller/Processor.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@
7373
//| """The CPU operating frequency in Hertz. (read-only)"""
7474
//|
7575

76-
STATIC mp_obj_t mcu_processor_set_sys_clock(mp_obj_t self_in, mp_obj_t freq) {
77-
mcu_processor_obj_t *self = MP_OBJ_TO_PTR(self_in);
76+
STATIC mp_obj_t mcu_processor_set_sys_clock(mp_obj_t self, mp_obj_t freq) {
7877
#if defined(HAS_SETTABLE_CLOCK)
7978
uint32_t value_of_freq = MP_OBJ_SMALL_INT_VALUE(freq);
8079
common_hal_mcu_processor_set_sys_clock(self, value_of_freq);

0 commit comments

Comments
 (0)