sforkowany z mirror/meshtastic-firmware
fix device name
rodzic
12599849db
commit
d445cbe083
|
@ -1,5 +1,6 @@
|
||||||
#include "NRF52Bluetooth.h"
|
#include "NRF52Bluetooth.h"
|
||||||
#include "configuration.h"
|
#include "configuration.h"
|
||||||
|
#include "main.h"
|
||||||
#include <bluefruit.h>
|
#include <bluefruit.h>
|
||||||
|
|
||||||
/* HRM Service Definitions
|
/* HRM Service Definitions
|
||||||
|
@ -153,7 +154,7 @@ void NRF52Bluetooth::setup()
|
||||||
Bluefruit.begin();
|
Bluefruit.begin();
|
||||||
|
|
||||||
// Set the advertised device name (keep it short!)
|
// Set the advertised device name (keep it short!)
|
||||||
Bluefruit.setName("Meshtastic52"); // FIXME
|
Bluefruit.setName(getDeviceName()); // FIXME
|
||||||
|
|
||||||
// Set the connect/disconnect callback handlers
|
// Set the connect/disconnect callback handlers
|
||||||
Bluefruit.Periph.setConnectCallback(connect_callback);
|
Bluefruit.Periph.setConnectCallback(connect_callback);
|
||||||
|
|
Ładowanie…
Reference in New Issue