Fix OK button in F4 (#259)

* fix OK button in F4
* return DFU serial to make
This commit is contained in:
coreglitch
2020-12-08 12:51:59 +03:00
committed by GitHub
parent 228055e4eb
commit 61cce74291
3 changed files with 4 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ void MX_GPIO_Init(void)
/*Configure GPIO pin : PtPin */
GPIO_InitStruct.Pin = BUTTON_OK_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING_FALLING;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(BUTTON_OK_GPIO_Port, &GPIO_InitStruct);