throw out shit

This commit is contained in:
Edward Emelianov 2023-02-19 21:51:15 +03:00
parent 87d9bc17c7
commit 61c2d0ce41
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -128,9 +128,9 @@ static int write2flash(const void *start, const void *wrdata, uint32_t stor_size
if(FLASH->SR & FLASH_SR_PGSERR){
ret = 1; // program error - meet not 0xffff
break;
}else{
}/*else{
for(int _ = 0; _ < 9999 && (!(FLASH->SR & FLASH_SR_EOP)); ++_);
}
}*/
FLASH->SR = 0xffff;
}
FLASH->CR &= ~(FLASH_CR_PG); // 7: clear PG bit at end of process