emit FromRadio.rebooted to serial test harness can detect reboots

This commit is contained in:
geeksville
2020-04-28 17:43:16 -07:00
parent b53392ab73
commit 2ab34357d5
6 changed files with 50 additions and 15 deletions

View File

@@ -45,9 +45,6 @@ class PhoneAPI
/// We temporarily keep the nodeInfo here between the call to available and getFromRadio
const NodeInfo *nodeInfoForPhone = NULL;
/// Our fromradio packet while it is being assembled
FromRadio fromRadioScratch;
ToRadio toRadioScratch; // this is a static scratch object, any data must be copied elsewhere before returning
/// Use to ensure that clients don't get confused about old messages from the radio
@@ -85,6 +82,9 @@ class PhoneAPI
void handleSetRadio(const RadioConfig &r);
protected:
/// Our fromradio packet while it is being assembled
FromRadio fromRadioScratch;
/**
* Subclasses can use this as a hook to provide custom notifications for their transport (i.e. bluetooth notifies)
*/