bootloader: fix comment

This commit is contained in:
King Kévin 2018-01-21 18:39:10 +01:00
parent b2c823f858
commit 25c44e9568
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ void main(void)
// check of DFU mode is forced
bool dfu_force = false; // to remember if DFU mode is forced
// check if a soft boot has been used
if (0==(RCC_CSR&0xfc000000)) { // no reset flag present -> this was a soft reset using csr_reset_core(), very probably to start the DFU mode
if (0==(RCC_CSR&0xfc000000)) { // no reset flag present -> this was a soft reset using scb_reset_core() after clearing the flags using RCC_CSR_RMVF, very probably to start the DFU mode
dfu_force = true;
} else { // check if the force DFU mode input is set
// disable SWJ pin to use as GPIO