this shouldnt run twice in a row or device can get bricked

This commit is contained in:
Conor Patrick 2018-12-04 19:34:30 -05:00
parent 5a636d1ebe
commit b475c8391a

View File

@ -91,10 +91,12 @@ void device_init()
LL_GPIO_SetPinMode(SOLO_BUTTON_PORT,SOLO_BUTTON_PIN,LL_GPIO_MODE_INPUT);
LL_GPIO_SetPinPull(SOLO_BUTTON_PORT,SOLO_BUTTON_PIN,LL_GPIO_PULL_UP);
#ifndef IS_BOOTLOADER
#if BOOT_TO_DFU
flash_option_bytes_init(1);
#else
flash_option_bytes_init(0);
#endif
#endif
printf1(TAG_GEN,"hello solo\r\n");