Skip to content

Commit 23aa7ab

Browse files
author
Jasper van Bourgognie
committed
Try harder to calibrate ADC
1 parent c576614 commit 23aa7ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Devices/SmartScope.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ private bool TestAdcRamp()
374374
bool verified = LabNation.Common.Utils.VerifyRamp((byte[])d.array);
375375
allGood &= verified;
376376
}
377+
if (!allGood)
378+
{
379+
triesLeft--;
380+
continue;
381+
}
377382
return allGood;
378383
}
379384
}

0 commit comments

Comments
 (0)