stm32duino / STM32LowPower

Arduino Low Power library for STM32
187 stars 52 forks source link

ExternalWakeup: LowPowerMode parameter SLEEP_MODE should be used #55

Closed ABOSTM closed 3 years ago

ABOSTM commented 3 years ago

ExternalWakeup: LowPowerMode parameter SLEEP_MODE should be used

Last parameter of attachInterruptWakeup(), aka "LowPowerMode", should match lowpower state used (in this case LowPower.sleep())

Fixes #54

fpistm commented 3 years ago

@ABOSTM I think the README.md should be updated to describe this.

ABOSTM commented 3 years ago

@ABOSTM I think the README.md should be updated to describe this.

Right. Done.

fpistm commented 3 years ago

Note: I've updated the GH action compile example to fix build issue while STM32 core 2.0.0 is not released.