From c4c76866905c45c72895dd3789662d8e84b85b1a Mon Sep 17 00:00:00 2001 From: dahanzimin <353767514@qq.com> Date: Tue, 3 Dec 2024 16:24:40 +0800 Subject: [PATCH] =?UTF-8?q?mpy=E7=9A=84=E8=93=9D=E7=89=99=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E5=BA=93=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=9C=AA=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E5=88=B0=E4=BB=8E=E6=9C=BA=E6=8A=A5=E9=94=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- boards/default_src/micropython/origin/build/lib/ble_central.py | 2 +- .../micropython_esp32c2/origin/build/lib/ble_central.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/default_src/micropython/origin/build/lib/ble_central.py b/boards/default_src/micropython/origin/build/lib/ble_central.py index 9c4ff245..c10e8bfb 100644 --- a/boards/default_src/micropython/origin/build/lib/ble_central.py +++ b/boards/default_src/micropython/origin/build/lib/ble_central.py @@ -183,7 +183,7 @@ class BLESimpleCentral: self._addr_type=self._info[1][index] self._addr=self._info[2][index] else: - raise ValueError("Bluetooth was not found") + raise ValueError("The '{}' Bluetooth was not found, Please check device is working".format(mac if name is None else name)) self._conn_callback = callback self._ble.gap_connect(self._addr_type, self._addr) return True diff --git a/boards/default_src/micropython_esp32c2/origin/build/lib/ble_central.py b/boards/default_src/micropython_esp32c2/origin/build/lib/ble_central.py index 117f4ad2..d3f857b6 100644 --- a/boards/default_src/micropython_esp32c2/origin/build/lib/ble_central.py +++ b/boards/default_src/micropython_esp32c2/origin/build/lib/ble_central.py @@ -183,7 +183,7 @@ class BLESimpleCentral: self._addr_type=self._info[1][index] self._addr=self._info[2][index] else: - raise ValueError("Bluetooth was not found") + raise ValueError("The '{}' Bluetooth was not found, Please check device is working".format(mac if name is None else name)) self._conn_callback = callback self._ble.gap_connect(self._addr_type, self._addr) return True