From 2e9e29bf1b1758a171e36aac10e8e978778cc906 Mon Sep 17 00:00:00 2001 From: mjs513 Date: Wed, 20 Apr 2022 04:10:16 -0400 Subject: [PATCH] Delete Left Over Comments --- locale/circuitpython.pot | 8 ++++---- shared-bindings/microcontroller/Processor.c | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/locale/circuitpython.pot b/locale/circuitpython.pot index eabace6931..da413022ba 100644 --- a/locale/circuitpython.pot +++ b/locale/circuitpython.pot @@ -2154,10 +2154,6 @@ msgstr "" msgid "Set pin count must be between 1 and 5" msgstr "" -#: shared-bindings/microcontroller/Processor.c -msgid "Settable Clock Not Implemented for Your Board" -msgstr "" - #: ports/raspberrypi/bindings/rp2pio/StateMachine.c msgid "Side set pin count must be between 1 and 5" msgstr "" @@ -3282,6 +3278,10 @@ msgstr "" msgid "format requires a dict" msgstr "" +#: shared-bindings/microcontroller/Processor.c +msgid "frequency is read-only for this board" +msgstr "" + #: py/objdeque.c msgid "full" msgstr "" diff --git a/shared-bindings/microcontroller/Processor.c b/shared-bindings/microcontroller/Processor.c index df9d5a9df9..423480435e 100644 --- a/shared-bindings/microcontroller/Processor.c +++ b/shared-bindings/microcontroller/Processor.c @@ -30,10 +30,6 @@ #include #include -// #include "py/objproperty.h" - -// #include "py/runtime.h" - #include "shared-bindings/util.h" #include "shared/runtime/buffer_helper.h" @@ -78,7 +74,7 @@ STATIC mp_obj_t mcu_processor_set_frequency(mp_obj_t self, mp_obj_t freq) { uint32_t value_of_freq = (uint32_t)mp_arg_validate_int_min(mp_obj_get_int(freq), 0, MP_QSTR_frequency); common_hal_mcu_processor_set_frequency(self, value_of_freq); #else - mp_raise_msg(&mp_type_NotImplementedError,translate("Settable Clock Not Implemented for Your Board")); + mp_raise_msg(&mp_type_NotImplementedError,translate("frequency is read-only for this board")); #endif return mp_const_none; }