Fix #115: wake from light sleep if a character arrives on the serial port

Note - we do this not by using the uart wake feature, but by the lower
power GPIO edge feature.  Recommend sending "Z" 0x5A - because that has
many edges.  Send the character 4 times to make sure the device is awake
This commit is contained in:
geeksville
2020-06-10 14:36:11 -07:00
parent ddfdae64bf
commit 8ccd59a7d8
3 changed files with 20 additions and 1 deletions

View File

@@ -258,7 +258,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef NO_ESP32
#define USE_SEGGER
#else
#define SERIAL0_RX_GPIO 3 // Always GPIO3 on ESP32
#endif
#ifdef USE_SEGGER
#include "SEGGER_RTT.h"
#define DEBUG_MSG(...) SEGGER_RTT_printf(0, __VA_ARGS__)