From 27e209cf58abeda1dc110777f99a98804a13fdbf Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 3 Aug 2018 12:22:51 +0100 Subject: don't print from callback, there's races --- sensor/thermostat.ino | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sensor/thermostat.ino') 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(); -- cgit v1.2.3