summaryrefslogtreecommitdiffstatshomepage
path: root/examples/bluetooth/ble_simple_central.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/ble_simple_central.py')
-rw-r--r--examples/bluetooth/ble_simple_central.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/ble_simple_central.py b/examples/bluetooth/ble_simple_central.py
index a6bbdc6ee0..3c0cf2a0d4 100644
--- a/examples/bluetooth/ble_simple_central.py
+++ b/examples/bluetooth/ble_simple_central.py
@@ -179,7 +179,7 @@ class BLESimpleCentral:
# Disconnect from current device.
def disconnect(self):
- if not self._conn_handle:
+ if self._conn_handle is None:
return
self._ble.gap_disconnect(self._conn_handle)
self._reset()