Skip to content

Commit 8b60180

Browse files
committed
move BLEAdafruit service to its own library due to neopixel/dotstar dependency
1 parent 583ad02 commit 8b60180

14 files changed

+7
-1
lines changed

libraries/Bluefruit52Lib/src/services/BLEAdafruitRgbPixel.cpp renamed to libraries/BLEAdafruitService/src/services/BLEAdafruitRgbPixel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ BLEAdafruitRgbPixel::BLEAdafruitRgbPixel(void)
6969

7070
}
7171

72-
err_t BLEAdafruitRgbPixel::begin (void)
72+
err_t BLEAdafruitRgbPixel::begin (Adafruit_NeoPixel* neo_pixel)
7373
{
7474
// Invoke base class begin()
7575
VERIFY_STATUS( BLEService::begin() );

libraries/Bluefruit52Lib/src/services/BLEAdafruitSensor.cpp renamed to libraries/BLEAdafruitService/src/services/BLEAdafruitSensor.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,11 @@ void BLEAdafruitSensor::sensor_data_cccd_cb(uint16_t conn_hdl, BLECharacteristic
151151
{
152152
svc._timer.stop();
153153
}
154+
155+
// send initial notification if period = 0
156+
// if ( 0 == svc._period.read32() )
157+
// {
158+
// svc._measurement.notify();
159+
// }
154160
}
155161

0 commit comments

Comments
 (0)