From beae025d1a4220b7dedd3b47033f83a812d0778b Mon Sep 17 00:00:00 2001 From: Doug Brown Date: Sun, 18 Dec 2011 10:19:57 -0800 Subject: [PATCH] Oops, I was counting too many errors --- tests/simm_electrical_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/simm_electrical_test.c b/tests/simm_electrical_test.c index a8ae5c9..b563bf6 100644 --- a/tests/simm_electrical_test.c +++ b/tests/simm_electrical_test.c @@ -71,11 +71,11 @@ int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t)) if (readback & 1) // failure here? { errorHandler(failIndex, GROUND_FAIL_INDEX); + numErrors++; } readback >>= 1; failIndex++; - numErrors++; } } @@ -91,11 +91,11 @@ int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t)) if (readback & 1) // failure here? { errorHandler(failIndex, GROUND_FAIL_INDEX); + numErrors++; } readback >>= 1; failIndex++; - numErrors++; } } @@ -223,11 +223,11 @@ int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t)) if (readback & 1) // failure here? { errorHandler(testPinFailIndex, failIndex); + numErrors++; } readback >>= 1; failIndex++; - numErrors++; } readback = Ports_ReadData(); @@ -248,11 +248,11 @@ int SIMMElectricalTest_Run(void (*errorHandler)(uint8_t, uint8_t)) if (readback & 1) // failure here? { errorHandler(testPinFailIndex, failIndex); + numErrors++; } readback >>= 1; failIndex++; - numErrors++; } if (curStage != TestingCS)