We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716497c commit 7a30176Copy full SHA for 7a30176
shared-bindings/microcontroller/Processor.c
@@ -73,8 +73,7 @@
73
//| """The CPU operating frequency in Hertz. (read-only)"""
74
//|
75
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);
+STATIC mp_obj_t mcu_processor_set_sys_clock(mp_obj_t self, mp_obj_t freq) {
78
#if defined(HAS_SETTABLE_CLOCK)
79
uint32_t value_of_freq = MP_OBJ_SMALL_INT_VALUE(freq);
80
common_hal_mcu_processor_set_sys_clock(self, value_of_freq);
0 commit comments