This commit is contained in:
Peter D. Gray 2024-02-05 09:05:40 -05:00
parent d7ced1e954
commit ee3ac849ea
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C
3 changed files with 13 additions and 1 deletions

View File

@ -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;

View File

@ -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

View File

@ -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[];