diff --git a/btcontrol.ino b/btcontrol.ino index 7f63352..db6e2c3 100644 --- a/btcontrol.ino +++ b/btcontrol.ino @@ -44,6 +44,7 @@ void FillLEDsFromPaletteColors( uint8_t colorIndex); class AdvertisedDeviceCallbacks : public BLEAdvertisedDeviceCallbacks { void onResult(BLEAdvertisedDevice advertisedDevice) { // TODO: switching of does not work because this function is only triggered when new devices are detected, ergo it will always be stuck with the last device + // the decrementing in line 58 needs to be moved to a seperate timebased function String addr = advertisedDevice.getAddress().toString(); String color = String(addr.substring(9,11)+addr.substring(12,14)+addr.substring(15,17)); color.toUpperCase();