mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 09:43:03 +00:00
Let StoreForward server send history to phoneAPI (#4282)
* Send StoreForward history of the server to a connected client To extend the ToPhoneQueue * Add delay after sending history info * Don't allow history request over LoRa on default channel --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
@@ -503,6 +503,14 @@ bool PhoneAPI::available()
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef ARCH_ESP32
|
||||
#if !MESHTASTIC_EXCLUDE_STOREFORWARD
|
||||
// Check if StoreForward has packets stored for us.
|
||||
if (!packetForPhone && storeForwardModule)
|
||||
packetForPhone = storeForwardModule->getForPhone();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (!packetForPhone)
|
||||
packetForPhone = service.getForPhone();
|
||||
hasPacket = !!packetForPhone;
|
||||
|
||||
Reference in New Issue
Block a user