mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-23 17:13:38 +00:00
omg I was not setting the correct flag to tell phone we had gps
This commit is contained in:
parent
d647be73df
commit
b4b8abe6ec
@ -107,10 +107,6 @@ class RadioCharacteristic : public ProtobufCharacteristic
|
|||||||
void onRead(BLECharacteristic *c)
|
void onRead(BLECharacteristic *c)
|
||||||
{
|
{
|
||||||
DEBUG_MSG("Reading radio config\n");
|
DEBUG_MSG("Reading radio config\n");
|
||||||
|
|
||||||
// update gps connection state
|
|
||||||
devicestate.has_radio = gps.isConnected;
|
|
||||||
|
|
||||||
ProtobufCharacteristic::onRead(c);
|
ProtobufCharacteristic::onRead(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,6 +231,9 @@ class MyNodeInfoCharacteristic : public ProtobufCharacteristic
|
|||||||
|
|
||||||
void onRead(BLECharacteristic *c)
|
void onRead(BLECharacteristic *c)
|
||||||
{
|
{
|
||||||
|
// update gps connection state
|
||||||
|
myNodeInfo.has_gps = gps.isConnected;
|
||||||
|
|
||||||
ProtobufCharacteristic::onRead(c);
|
ProtobufCharacteristic::onRead(c);
|
||||||
|
|
||||||
myNodeInfo.error_code = 0; // The phone just read us, so throw it away
|
myNodeInfo.error_code = 0; // The phone just read us, so throw it away
|
||||||
|
Loading…
Reference in New Issue
Block a user