mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-21 10:12:50 +00:00
unify activity detection in PhoneAPI, turn off BLE API while serial API in use
This commit is contained in:
@@ -26,6 +26,10 @@ class SerialConsole : public StreamAPI, public RedirectablePrint
|
||||
RedirectablePrint::write('\r');
|
||||
return RedirectablePrint::write(c);
|
||||
}
|
||||
|
||||
protected:
|
||||
/// Hookable to find out when connection changes
|
||||
virtual void onConnectionChanged(bool connected);
|
||||
};
|
||||
|
||||
extern SerialConsole console;
|
||||
|
||||
Reference in New Issue
Block a user