aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/IRQ_STORM/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32F4xx/IRQ_STORM/main.c')
-rw-r--r--testhal/STM32F4xx/IRQ_STORM/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/testhal/STM32F4xx/IRQ_STORM/main.c b/testhal/STM32F4xx/IRQ_STORM/main.c
index bc34ba149..4994e77e3 100644
--- a/testhal/STM32F4xx/IRQ_STORM/main.c
+++ b/testhal/STM32F4xx/IRQ_STORM/main.c
@@ -286,7 +286,9 @@ int main(void) {
println("");
saturated = FALSE;
threshold = 0;
- for (interval = 2000; interval >= 10; interval -= interval / 10) {
+ for (interval = 2000;
+ interval >= 2;
+ interval -= (interval + 9) / 10) {
gptStartContinuous(&GPTD4, interval - 1); /* Slightly out of phase.*/
gptStartContinuous(&GPTD3, interval + 1); /* Slightly out of phase.*/
chThdSleepMilliseconds(1000);