Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case breaks in why_wake() #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ void why_wake(){
int wake_cause = esp_sleep_get_wakeup_cause();
printf("Wake Cause (%d): ", wake_cause);
switch (wake_cause) {
case 1 : printf("Wakeup caused by external signal using RTC_IO");
case 2 : printf("Wakeup caused by external signal using RTC_CNTL");
case 3 : printf("Wakeup caused by timer");
case 4 : printf("Wakeup caused by touchpad");
case 5 : printf("Wakeup caused by ULP program");
case 1 : printf("Wakeup caused by external signal using RTC_IO");break;
case 2 : printf("Wakeup caused by external signal using RTC_CNTL");break;
case 3 : printf("Wakeup caused by timer");break;
case 4 : printf("Wakeup caused by touchpad");break;
case 5 : printf("Wakeup caused by ULP program");break;
default : printf("Undefined. In case of deep sleep, reset was not caused by exit from deep sleep.");
}
printf("\n");
Expand Down