Skip to content

Commit

Permalink
ETB HW QC fix #253
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Oct 30, 2023
1 parent 2a1bd87 commit 376ba9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions digital-inputs/firmware/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ static void ConsoleThread(void*) {

stimulateEcuDigitalInputs(currentIndex);
bool isHappyDigitalInputCounterStatus = checkDigitalInputCounterStatus();

bool isHappyDcOutputs = testEcuDcOutputs(currentIndex);
currentIndex += getDigitalDcOutputStepsCount();

bool isHappyUptime = numSecondsSinceReset > 30;
if (!isHappyUptime) {
setErrorLedAndRedText();
Expand All @@ -117,6 +121,7 @@ static void ConsoleThread(void*) {
bool isAllGood = isGoodDigitalOutputs
&& isHappyCanTest()
&& isHappyUptime
&& isHappyDcOutputs
&& isHappyDigitalInputCounterStatus;

executionCounter++;
Expand Down
2 changes: 1 addition & 1 deletion digital-inputs/firmware/test_digital_outputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool testEcuDcOutputs(size_t startStepIndex) {

bool isGood = true;

int numOutputs = 1000000;//getDigitalDcOutputStepsCount();
int numOutputs = getDigitalDcOutputStepsCount();
for (size_t currentIndex = 0; currentIndex < numOutputs; currentIndex++) {
testDcOutput();
}
Expand Down

0 comments on commit 376ba9a

Please sign in to comment.