mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-28 02:32:09 +00:00
Store and Forward: don't try to store a message if PSRAM is not initialized!
This commit is contained in:
parent
2b9f01f0e4
commit
5831124f1d
@ -237,7 +237,7 @@ ProcessMessage StoreForwardModule::handleReceived(const MeshPacket &mp)
|
|||||||
// The router node should not be sending messages as a client. Unless he is a ROUTER_CLIENT
|
// The router node should not be sending messages as a client. Unless he is a ROUTER_CLIENT
|
||||||
if ((getFrom(&mp) != nodeDB.getNodeNum()) || (config.device.role == Config_DeviceConfig_Role_ROUTER_CLIENT)) {
|
if ((getFrom(&mp) != nodeDB.getNodeNum()) || (config.device.role == Config_DeviceConfig_Role_ROUTER_CLIENT)) {
|
||||||
|
|
||||||
if (mp.decoded.portnum == PortNum_TEXT_MESSAGE_APP) {
|
if ((mp.decoded.portnum == PortNum_TEXT_MESSAGE_APP) && is_server) {
|
||||||
storeForwardModule->historyAdd(mp);
|
storeForwardModule->historyAdd(mp);
|
||||||
LOG_INFO("*** S&F stored. Message history contains %u records now.\n", this->packetHistoryCurrent);
|
LOG_INFO("*** S&F stored. Message history contains %u records now.\n", this->packetHistoryCurrent);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user