diff --git a/TODO.md b/TODO.md index 76fc5005..7bce8781 100644 --- a/TODO.md +++ b/TODO.md @@ -2,6 +2,7 @@ Items to complete soon (next couple of alpha releases). +* text messages are not showing on local screen if screen was on * stay awake while charging * check gps battery voltage diff --git a/src/NodeDB.cpp b/src/NodeDB.cpp index 96d8bf5c..8071d58d 100644 --- a/src/NodeDB.cpp +++ b/src/NodeDB.cpp @@ -275,7 +275,7 @@ void NodeDB::updateFrom(const MeshPacket &mp) devicestate.rx_text_message = mp; devicestate.has_rx_text_message = true; updateTextMessage = true; - powerFSM.trigger(EVENT_NODEDB_UPDATED); + powerFSM.trigger(EVENT_RECEIVED_TEXT_MSG); } } break; diff --git a/src/PowerFSM.cpp b/src/PowerFSM.cpp index 1811fee3..e1e1494d 100644 --- a/src/PowerFSM.cpp +++ b/src/PowerFSM.cpp @@ -133,6 +133,7 @@ void PowerFSM_setup() powerFSM.add_transition(&stateLS, &stateON, EVENT_RECEIVED_TEXT_MSG, NULL, "Received text"); powerFSM.add_transition(&stateNB, &stateON, EVENT_RECEIVED_TEXT_MSG, NULL, "Received text"); powerFSM.add_transition(&stateDARK, &stateON, EVENT_RECEIVED_TEXT_MSG, NULL, "Received text"); + powerFSM.add_transition(&stateON, &stateON, EVENT_RECEIVED_TEXT_MSG, NULL, "Received text"); // restarts the sleep timer powerFSM.add_transition(&stateDARK, &stateDARK, EVENT_CONTACT_FROM_PHONE, NULL, "Contact from phone"); diff --git a/src/configuration.h b/src/configuration.h index e07b927d..d27c9009 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -42,8 +42,8 @@ along with this program. If not, see . // Select which board is being used. If the outside build environment has sent a choice, just use that #if !defined(T_BEAM_V10) && !defined(HELTEC_LORA32) -#define T_BEAM_V10 // AKA Rev1 (second board released) -//#define HELTEC_LORA32 +// #define T_BEAM_V10 // AKA Rev1 (second board released) +#define HELTEC_LORA32 #define HW_VERSION_US // We encode the hardware freq range in the hw version string, so sw update can eventually install the correct build #endif