From fd511a7715d1486001989a745ae8670a21295b9d Mon Sep 17 00:00:00 2001 From: Hugo Chiang <1483569698@qq.com> Date: Thu, 21 Apr 2022 09:12:07 +0000 Subject: [PATCH] fix TypeError in newer mpy version ble.irq() no longer take keyword arguments --- ble/ble_uart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ble/ble_uart.py b/ble/ble_uart.py index 818e1f1..0fd3688 100644 --- a/ble/ble_uart.py +++ b/ble/ble_uart.py @@ -37,7 +37,7 @@ class BLEUART: print("ble activated") self.__ble.config(rxbuf=rxbuf) - self.__ble.irq(handler=self.__irq) + self.__ble.irq(self.__irq) self.__register_services() self.__adv_payload = BLETools.advertising_generic_payload( -- Gitee