fix: don't wake up after USB connect (#644)
## Summary * fixes problem that if short power button press is enabled, connecting device to usb leads to waking up
This commit is contained in:
committed by
GitHub
parent
5a97334ace
commit
0d82b03981
@@ -47,8 +47,9 @@ class HalGPIO {
|
||||
// Check if USB is connected
|
||||
bool isUsbConnected() const;
|
||||
|
||||
// Check if wakeup was caused by power button press
|
||||
bool isWakeupByPowerButton() const;
|
||||
enum class WakeupReason { PowerButton, AfterFlash, AfterUSBPower, Other };
|
||||
|
||||
WakeupReason getWakeupReason() const;
|
||||
|
||||
// Button indices
|
||||
static constexpr uint8_t BTN_BACK = 0;
|
||||
|
||||
Reference in New Issue
Block a user