mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-22 04:54:47 +00:00
Merge branch 'master' into tft-gui-work
This commit is contained in:
commit
e5fe8668c9
@ -72,7 +72,7 @@ bool SerialConsole::checkIsConnected()
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* we override this to notice when we've received a protobuf over the serial
|
* we override this to notice when we've received a protobuf over the serial
|
||||||
* stream. Then we shunt off debug serial output.
|
* stream. Then we shut off debug serial output.
|
||||||
*/
|
*/
|
||||||
bool SerialConsole::handleToRadio(const uint8_t *buf, size_t len)
|
bool SerialConsole::handleToRadio(const uint8_t *buf, size_t len)
|
||||||
{
|
{
|
||||||
|
@ -1209,6 +1209,11 @@ bool GPS::factoryReset()
|
|||||||
// byte _message_CFG_RST_COLDSTART[] = {0xB5, 0x62, 0x06, 0x04, 0x04, 0x00, 0xFF, 0xB9, 0x00, 0x00, 0xC6, 0x8B};
|
// byte _message_CFG_RST_COLDSTART[] = {0xB5, 0x62, 0x06, 0x04, 0x04, 0x00, 0xFF, 0xB9, 0x00, 0x00, 0xC6, 0x8B};
|
||||||
// _serial_gps->write(_message_CFG_RST_COLDSTART, sizeof(_message_CFG_RST_COLDSTART));
|
// _serial_gps->write(_message_CFG_RST_COLDSTART, sizeof(_message_CFG_RST_COLDSTART));
|
||||||
// delay(1000);
|
// delay(1000);
|
||||||
|
} else if (gnssModel == GNSS_MODEL_MTK) {
|
||||||
|
// send the CAS10 to perform a factory restart of the device (and other device that support PCAS statements)
|
||||||
|
LOG_INFO("GNSS Factory Reset via PCAS10,3\n");
|
||||||
|
_serial_gps->write("$PCAS10,3*1F\r\n");
|
||||||
|
delay(100);
|
||||||
} else {
|
} else {
|
||||||
// fire this for good measure, if we have an L76B - won't harm other devices.
|
// fire this for good measure, if we have an L76B - won't harm other devices.
|
||||||
_serial_gps->write("$PMTK104*37\r\n");
|
_serial_gps->write("$PMTK104*37\r\n");
|
||||||
|
@ -113,6 +113,9 @@ bool PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
|
|||||||
"not enabled\n");
|
"not enabled\n");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case meshtastic_ToRadio_heartbeat_tag:
|
||||||
|
LOG_DEBUG("Got client heartbeat\n");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
// Ignore nop messages
|
// Ignore nop messages
|
||||||
// LOG_DEBUG("Error: unexpected ToRadio variant\n");
|
// LOG_DEBUG("Error: unexpected ToRadio variant\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user