mirror of
https://github.com/meshtastic/firmware.git
synced 2026-02-02 19:51:15 -05:00
Make the shouldWake function always available, and remove the bool (#7300)
This commit is contained in:
@@ -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