We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8fe873 commit f9f995bCopy full SHA for f9f995b
libraries/ESP32/examples/DeepSleep/TimerWakeUp/TimerWakeUp.ino
@@ -40,7 +40,7 @@ void print_wakeup_reason(){
40
case 3 : Serial.println("Wakeup caused by timer"); break;
41
case 4 : Serial.println("Wakeup caused by touchpad"); break;
42
case 5 : Serial.println("Wakeup caused by ULP program"); break;
43
- default : Serial.println("Wakeup was not caused by deep sleep"); break;
+ default : Serial.printf("Wakeup was not caused by deep sleep: %d\n",wakeup_reason); break;
44
}
45
46
@@ -84,6 +84,7 @@ void setup(){
84
reset occurs.
85
*/
86
Serial.println("Going to sleep now");
87
+ Serial.flush();
88
esp_deep_sleep_start();
89
Serial.println("This will never be printed");
90
0 commit comments