summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-11-19 19:20:53 +0700
committerGitHub <[email protected]>2025-11-19 19:20:53 +0700
commit19fd61603f49e0130f65cdf404c9d4424bda70e3 (patch)
treed1762a384f10217912bf8a311ef4094c39c684a3 /src
parente0155eb1d2170d8448e422a6f75f8bc65b476cec (diff)
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_stm32.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_stm32.h b/src/portable/synopsys/dwc2/dwc2_stm32.h
index 62629334e..9da8de41f 100644
--- a/src/portable/synopsys/dwc2/dwc2_stm32.h
+++ b/src/portable/synopsys/dwc2/dwc2_stm32.h
@@ -176,7 +176,7 @@ TU_ATTR_ALWAYS_INLINE static inline void dwc2_int_set(uint8_t rhport, tusb_role_
TU_ATTR_ALWAYS_INLINE static inline void dwc2_remote_wakeup_delay(void) {
// try to delay for 1 ms
uint32_t count = SystemCoreClock / 1000;
- while ((count--) > 0) {
+ while (count--) {
__NOP();
}
}