aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate_game/connectionhandler.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-05 16:44:38 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-09 09:51:40 +0200
commit721c944f649ac8e3e94fcc028035a35c6dd5ff8c (patch)
tree86900a34130116dc32bcd1f372dd91f4235df1ac /examples/bluetooth/heartrate_game/connectionhandler.py
parent7b547bd786d3f37e900d24468d33467ac4681b91 (diff)
Bluetooth/Heartrate game example: Fix the simulator CLI option
For some reason, a global variable from the heartrate_global module does not work. Replace it by functions. Pick-to: 6.5 Task-number: PYSIDE-2206 Change-Id: I3ae587a912ab33ab8c88785bed759bcf8bb79261 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'examples/bluetooth/heartrate_game/connectionhandler.py')
-rw-r--r--examples/bluetooth/heartrate_game/connectionhandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/bluetooth/heartrate_game/connectionhandler.py b/examples/bluetooth/heartrate_game/connectionhandler.py
index f631ecdb3..e8734153e 100644
--- a/examples/bluetooth/heartrate_game/connectionhandler.py
+++ b/examples/bluetooth/heartrate_game/connectionhandler.py
@@ -29,7 +29,7 @@ class ConnectionHandler(QObject):
def alive(self):
if sys.platform == "darwin":
return True
- if simulator:
+ if simulator():
return True
return (self.m_localDevice.isValid()
and self.m_localDevice.hostMode() != QBluetoothLocalDevice.HostPoweredOff)