aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate_game/deviceinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartrate_game/deviceinfo.py')
-rw-r--r--examples/bluetooth/heartrate_game/deviceinfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bluetooth/heartrate_game/deviceinfo.py b/examples/bluetooth/heartrate_game/deviceinfo.py
index 4ea08628f..5fd5c3270 100644
--- a/examples/bluetooth/heartrate_game/deviceinfo.py
+++ b/examples/bluetooth/heartrate_game/deviceinfo.py
@@ -25,13 +25,13 @@ class DeviceInfo(QObject):
@Property(str, notify=deviceChanged)
def deviceName(self):
- if simulator:
+ if simulator():
return "Demo device"
return self.m_device.name()
@Property(str, notify=deviceChanged)
def deviceAddress(self):
- if simulator:
+ if simulator():
return "00:11:22:33:44:55"
if sys.platform == "Darwin": # workaround for Core Bluetooth:
return self.m_device.deviceUuid().toString()