From b4b8abe6ec15ca9eb46fa47b07e8158637d2a0d3 Mon Sep 17 00:00:00 2001 From: geeksville Date: Tue, 24 Mar 2020 15:20:24 -0700 Subject: [PATCH] omg I was not setting the correct flag to tell phone we had gps --- src/MeshBluetoothService.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/MeshBluetoothService.cpp b/src/MeshBluetoothService.cpp index e60380ff..3a059230 100644 --- a/src/MeshBluetoothService.cpp +++ b/src/MeshBluetoothService.cpp @@ -107,10 +107,6 @@ class RadioCharacteristic : public ProtobufCharacteristic void onRead(BLECharacteristic *c) { DEBUG_MSG("Reading radio config\n"); - - // update gps connection state - devicestate.has_radio = gps.isConnected; - ProtobufCharacteristic::onRead(c); } @@ -235,6 +231,9 @@ class MyNodeInfoCharacteristic : public ProtobufCharacteristic void onRead(BLECharacteristic *c) { + // update gps connection state + myNodeInfo.has_gps = gps.isConnected; + ProtobufCharacteristic::onRead(c); myNodeInfo.error_code = 0; // The phone just read us, so throw it away