summaryrefslogtreecommitdiff
path: root/sensor/thermostat.ino
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-08-03 12:22:51 +0100
committerdakkar <dakkar@thenautilus.net>2018-08-03 12:22:51 +0100
commit27e209cf58abeda1dc110777f99a98804a13fdbf (patch)
tree3085c819c1145ab64c8e388c08b42a71ba3a726b /sensor/thermostat.ino
parentbump submodules (diff)
downloadthermostat-27e209cf58abeda1dc110777f99a98804a13fdbf.tar.gz
thermostat-27e209cf58abeda1dc110777f99a98804a13fdbf.tar.bz2
thermostat-27e209cf58abeda1dc110777f99a98804a13fdbf.zip
don't print from callback, there's races
Diffstat (limited to 'sensor/thermostat.ino')
-rw-r--r--sensor/thermostat.ino4
1 files changed, 0 insertions, 4 deletions
diff --git a/sensor/thermostat.ino b/sensor/thermostat.ino
index b6d4102..4ab3833 100644
--- a/sensor/thermostat.ino
+++ b/sensor/thermostat.ino
@@ -41,10 +41,6 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
// We have found a device, let us now see if it contains the service we are looking for.
- String results = "Found: \n";
- results += String(advertisedDevice.getAddress().toString().c_str());
- show(results);
-
if (advertisedDevice.haveName() && advertisedDevice.getName() == "termostore") {
advertisedDevice.getScan()->stop();