Kris Scholte Lubberink
/
SSS_Ble
Ble for smart sOlutions
Diff: source/ColorService.h
- Revision:
- 7:9cda1b0f25ae
- Parent:
- 6:ee9c86f06eae
- Child:
- 8:369b80cef5ae
diff -r ee9c86f06eae -r 9cda1b0f25ae source/ColorService.h --- a/source/ColorService.h Mon May 20 09:55:38 2019 +0200 +++ b/source/ColorService.h Mon May 20 13:20:35 2019 +0200 @@ -19,8 +19,6 @@ mystrip(Adafruit_WS2801(STRIP_LENGTH, p26,p27, WS2801_RGB)), colorCharacteristic((UUID)CustomUUIDs::UUID_COLOR_CHAR, &color) { -// this->mystrip(); - static bool serviceAdded = false; /* We should only ever need to add the information service once. */ if (serviceAdded) { return; @@ -35,7 +33,7 @@ ble.gattServer().addService(colorService); ble.gattServer().onDataWritten(this, &ColorService::onDataWritten); - serviceAdded = true; +// serviceAdded = true; }