Skip to content

Commit

Permalink
jtagtap: Update the for-loop in delay_busy
Browse files Browse the repository at this point in the history
  • Loading branch information
ALTracer committed Nov 27, 2023
1 parent adc7d99 commit 8e7c19b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/common/jtagtap.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static inline void platform_delay_busy(const uint32_t loops)
__asm__("nop");
} while (--i > 0U);
#else
for (register uint32_t counter = loops; counter > 0; --counter)
for (register uint32_t counter = loops; --counter > 0;)
__asm__("nop");
#endif
}
Expand Down

0 comments on commit 8e7c19b

Please sign in to comment.