Fix is_flash_busy on STM32F1 XL device

pull/1124/head
anton 2021-03-27 19:37:20 +05:00
rodzic c0653f6595
commit bb96d613dd
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -993,7 +993,7 @@ static inline unsigned int is_flash_busy(stlink_t *sl) {
unsigned int res;
if ((sl->flash_type == STLINK_FLASH_TYPE_F0) ||
(sl->flash_type == STLINK_FLASH_TYPE_F0) ||
(sl->flash_type == STLINK_FLASH_TYPE_F1_XL) ||
(sl->flash_type == STLINK_FLASH_TYPE_L0)) {
sr_busy_shift = FLASH_SR_BSY;
} else if (sl->flash_type == STLINK_FLASH_TYPE_F4) {
@ -1010,7 +1010,7 @@ static inline unsigned int is_flash_busy(stlink_t *sl) {
} else if (sl->flash_type == STLINK_FLASH_TYPE_H7) {
sr_busy_shift = FLASH_H7_SR_QW;
} else {
ELOG("unsupported flash method, abort\n");
ELOG("unsupported flash method\n");
return(-1);
}