Make the shouldWake function always available, and remove the bool (#7300)

This commit is contained in:
Jonathan Bennett
2025-07-10 22:51:43 -05:00
committed by GitHub
parent be75f11156
commit 4bab148e3b
3 changed files with 22 additions and 29 deletions

View File

@@ -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);