bench_test: min 2 iterations for all pins

This commit is contained in:
andreika-git 2023-10-17 18:16:06 +03:00 committed by rusefillc
parent f4b63d9f53
commit af6d4cea6c
1 changed files with 1 additions and 1 deletions

View File

@ -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;