Fixes #6707 (reboot issue on X9E)

This commit is contained in:
Bertrand Songis
2019-09-04 12:55:03 +02:00
parent 73ae084016
commit 995aa8708a
4 changed files with 19 additions and 7 deletions
+2 -3
View File
@@ -18,7 +18,6 @@
* GNU General Public License for more details.
*/
#include "pwr.h"
#include "board.h"
void pwrInit()
@@ -67,12 +66,12 @@ void pwrInit()
// TRAINER DETECT PIN
GPIO_InitStructure.GPIO_Pin = TRAINER_DETECT_GPIO_PIN;
GPIO_Init(TRAINER_DETECT_GPIO, &GPIO_InitStructure);
pwrOn();
}
void pwrOn()
{
// we keep the init of the PIN to have pwrOn as quick as possible
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.GPIO_Pin = PWR_ON_GPIO_PIN;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;