From 84c7ac4a812a394f7196f1af5ffa954f0b457f98 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Fri, 30 Sep 2022 07:56:59 -0500 Subject: [PATCH] Make cyw43.set_power_management() be a function as intended --- ports/raspberrypi/bindings/cyw43/__init__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/raspberrypi/bindings/cyw43/__init__.c b/ports/raspberrypi/bindings/cyw43/__init__.c index a334873b99..e6974090c8 100644 --- a/ports/raspberrypi/bindings/cyw43/__init__.c +++ b/ports/raspberrypi/bindings/cyw43/__init__.c @@ -80,7 +80,7 @@ const mcu_pin_obj_t *validate_obj_is_free_pin_including_cyw43(mp_obj_t obj) { STATIC const mp_rom_map_elem_t cyw43_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_cyw43) }, { MP_ROM_QSTR(MP_QSTR_CywPin), MP_ROM_QSTR(MP_QSTR_CywPin) }, - { MP_ROM_QSTR(MP_QSTR_set_power_management), MP_ROM_QSTR(MP_QSTR_set_power_management) }, + { MP_ROM_QSTR(MP_QSTR_set_power_management), &cyw43_set_power_management_obj }, }; STATIC MP_DEFINE_CONST_DICT(cyw43_module_globals, cyw43_module_globals_table);