sforkowany z mirror/meshtastic-firmware
rodzic
49a9973548
commit
505e4e8176
|
@ -244,6 +244,8 @@ void NRF52Bluetooth::setup()
|
|||
Bluefruit.Periph.setConnectCallback(onConnect);
|
||||
Bluefruit.Periph.setDisconnectCallback(onDisconnect);
|
||||
|
||||
bledfu.begin(); // Install the DFU helper
|
||||
|
||||
// Configure and Start the Device Information Service
|
||||
DEBUG_MSG("Configuring the Device Information Service\n");
|
||||
bledis.setModel(optstr(HW_VERSION));
|
||||
|
@ -254,7 +256,7 @@ void NRF52Bluetooth::setup()
|
|||
DEBUG_MSG("Configuring the Battery Service\n");
|
||||
blebas.begin();
|
||||
blebas.write(0); // Unknown battery level for now
|
||||
bledfu.begin(); // Install the DFU helper
|
||||
|
||||
|
||||
// Setup the Heart Rate Monitor service using
|
||||
// BLEService and BLECharacteristic classes
|
||||
|
|
Ładowanie…
Reference in New Issue