We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82a0581 commit dfb0173Copy full SHA for dfb0173
src/target/ch32f1.c
@@ -219,7 +219,7 @@ static bool ch32f1_flash_busy_wait(target_s *const target)
219
static bool ch32f1_flash_eop_wait(target_s *const target)
220
{
221
uint32_t status = CH32F1_FLASH_STATUS_EOP;
222
- while (status & CH32F1_FLASH_STATUS_EOP) {
+ while (!(status & CH32F1_FLASH_STATUS_EOP)) {
223
status = target_mem32_read32(target, CH32F1_FLASH_STATUS);
224
if (target_check_error(target)) {
225
DEBUG_ERROR("ch32f1 flash write: comm error\n");
0 commit comments