From d445cbe083b6826fb33f3657bb0ff112a8787a03 Mon Sep 17 00:00:00 2001 From: geeksville Date: Thu, 23 Apr 2020 21:22:58 -0700 Subject: [PATCH] fix device name --- src/bare/NRF52Bluetooth.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bare/NRF52Bluetooth.cpp b/src/bare/NRF52Bluetooth.cpp index 4d9813f1d..676065a12 100644 --- a/src/bare/NRF52Bluetooth.cpp +++ b/src/bare/NRF52Bluetooth.cpp @@ -1,5 +1,6 @@ #include "NRF52Bluetooth.h" #include "configuration.h" +#include "main.h" #include /* HRM Service Definitions @@ -153,7 +154,7 @@ void NRF52Bluetooth::setup() Bluefruit.begin(); // Set the advertised device name (keep it short!) - Bluefruit.setName("Meshtastic52"); // FIXME + Bluefruit.setName(getDeviceName()); // FIXME // Set the connect/disconnect callback handlers Bluefruit.Periph.setConnectCallback(connect_callback);