forked from Archive/PX4-Autopilot
Mantis: reduce power button hold time
This is more intuitive and matches the tune. Hopefully, it's still long enough to prevent any false positives.
This commit is contained in:
parent
6960600c28
commit
7759ffb00e
|
@ -146,7 +146,7 @@
|
|||
|
||||
#define BOARD_HAS_POWER_CONTROL 1
|
||||
/* power on/off */
|
||||
#define MS_PWR_BUTTON_DOWN 1500
|
||||
#define MS_PWR_BUTTON_DOWN 750
|
||||
#define KEY_AD_GPIO (GPIO_INPUT|GPIO_PULLUP|GPIO_EXTI|GPIO_PORTC|GPIO_PIN4)
|
||||
#define POWER_ON_GPIO (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_SET|GPIO_PORTC|GPIO_PIN5)
|
||||
#define POWER_OFF_GPIO (GPIO_INPUT|GPIO_PULLDOWN|GPIO_PORTC|GPIO_PIN5)
|
||||
|
|
Loading…
Reference in New Issue