Update 'WakeupCause' enum to match IDF #92
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added 3 missing entries in the enum 'WakeUpCause':
These entries are declared in the original C enum 'esp_sleep_source_t', but were missing in C#.
The 2 last entries comes at the end of the enum and have no effect on the integer value of the enum entries, but 'WakeupCause.All' comes in second position of the enum and changes the ordinal of all following entries.
Motivation and Context
When returning from sleep, the enum value returned by 'Sleep.GetWakeupCause()' does not match the actual cause of the sleep.
How Has This Been Tested?
Basic test: Using the sample project 'HardwareEsp32', the return value of 'Sleep.GetWakeupCause()' was casted to the new declaration of the enum with success.
Types of changes
Checklist:
Signed-off-by: oleneveu oleneveu@gmail.com