mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-06 21:21:52 -04:00
Make the shouldWake function always available, and remove the bool (#7300)
This commit is contained in:
1 parent
be75f11156
commit
4bab148e3b
3 files changed
+22
-29
No files matched your search
@@ -18,9 +18,8 @@ ProcessMessage TextMessageModule::handleReceived(const meshtastic_MeshPacket &mp
|
||||
devicestate.rx_text_message = mp;
|
||||
devicestate.has_rx_text_message = true;
|
||||
|
||||
wake_on_received_message = shouldWakeOnReceivedMessage();
|
||||
// Only trigger screen wake if configuration allows it
|
||||
if (wake_on_received_message) {
|
||||
if (shouldWakeOnReceivedMessage()) {
|
||||
powerFSM.trigger(EVENT_RECEIVED_MSG);
|
||||
}
|
||||
notifyObservers(&mp);
|
||||
|
||||
Reference in new issue
Block a user