From af6d4cea6c707a4951fec30d4470088491f768b3 Mon Sep 17 00:00:00 2001 From: andreika-git Date: Tue, 17 Oct 2023 18:16:06 +0300 Subject: [PATCH] bench_test: min 2 iterations for all pins --- firmware/controllers/bench_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/bench_test.cpp b/firmware/controllers/bench_test.cpp index 9a8dc31982..d8552599cc 100644 --- a/firmware/controllers/bench_test.cpp +++ b/firmware/controllers/bench_test.cpp @@ -136,7 +136,7 @@ static void pinbench(float p_ontimeMs, float p_offtimeMs, int iterations, { onTimeMs = p_ontimeMs; offTimeMs = p_offtimeMs; - count = iterations; + count = maxI(2, iterations); pinX = pinParam; // let's signal bench thread to wake up isBenchTestPending = true;