mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 01:42:15 +00:00
extra debug output for radio config, and bump up bax handles for BLE
This commit is contained in:
parent
7dabad1b70
commit
feb6f2e59e
@ -106,12 +106,13 @@ class RadioCharacteristic : public ProtobufCharacteristic
|
|||||||
|
|
||||||
void onRead(BLECharacteristic *c)
|
void onRead(BLECharacteristic *c)
|
||||||
{
|
{
|
||||||
DEBUG_MSG("Reading radio config\n");
|
DEBUG_MSG("Reading radio config, sdsecs %u\n", radioConfig.preferences.sds_secs);
|
||||||
ProtobufCharacteristic::onRead(c);
|
ProtobufCharacteristic::onRead(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
void onWrite(BLECharacteristic *c)
|
void onWrite(BLECharacteristic *c)
|
||||||
{
|
{
|
||||||
|
DEBUG_MSG("Writing radio config\n");
|
||||||
ProtobufCharacteristic::onWrite(c);
|
ProtobufCharacteristic::onWrite(c);
|
||||||
service.reloadConfig();
|
service.reloadConfig();
|
||||||
}
|
}
|
||||||
@ -263,7 +264,7 @@ See bluetooth-api.md for documentation.
|
|||||||
BLEService *createMeshBluetoothService(BLEServer *server)
|
BLEService *createMeshBluetoothService(BLEServer *server)
|
||||||
{
|
{
|
||||||
// Create the BLE Service, we need more than the default of 15 handles
|
// Create the BLE Service, we need more than the default of 15 handles
|
||||||
BLEService *service = server->createService(BLEUUID("6ba1b218-15a8-461f-9fa8-5dcae273eafd"), 25, 0);
|
BLEService *service = server->createService(BLEUUID("6ba1b218-15a8-461f-9fa8-5dcae273eafd"), 30, 0);
|
||||||
|
|
||||||
assert(!meshFromNumCharacteristic);
|
assert(!meshFromNumCharacteristic);
|
||||||
meshFromNumCharacteristic = new FromNumCharacteristic;
|
meshFromNumCharacteristic = new FromNumCharacteristic;
|
||||||
|
Loading…
Reference in New Issue
Block a user