Skip to content

Commit

Permalink
omg I was not setting the correct flag to tell phone we had gps
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Mar 24, 2020
1 parent d647be7 commit b4b8abe
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/MeshBluetoothService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b4b8abe

Please sign in to comment.