bugfix
This commit is contained in:
parent
d7ced1e954
commit
ee3ac849ea
@ -220,6 +220,16 @@ q1_wait_powerdown(void)
|
||||
{
|
||||
gpio_setup();
|
||||
|
||||
// wait for release (often problem occurs close to power up)
|
||||
for(uint32_t i=0; i<AUTO_POWERDOWN_TIME*10; i++) {
|
||||
if(HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_12) == 1) {
|
||||
break;
|
||||
}
|
||||
|
||||
delay_ms(100);
|
||||
}
|
||||
|
||||
// wait for press
|
||||
for(uint32_t i=0; i<AUTO_POWERDOWN_TIME*10; i++) {
|
||||
if(HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_12) == 0) {
|
||||
break;
|
||||
|
||||
@ -9,3 +9,5 @@ Github is nearly free, so why not capture all the actual bits!
|
||||
# Change log
|
||||
|
||||
- V1.0.0 - first version built
|
||||
- V1.0.1 - first version almost released to production
|
||||
- V1.0.2 - bugfix w/ power btn release
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
// Public version number for humans. Lots more version data added by Makefile.
|
||||
#define RELEASE_VERSION "1.0.1"
|
||||
#define RELEASE_VERSION "1.0.2"
|
||||
|
||||
extern const char version_string[];
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user