Skip to content

Commit

Permalink
Refactor load override logic to only affect load #1
Browse files Browse the repository at this point in the history
  • Loading branch information
FredM67 committed Jan 12, 2025
1 parent 1ed0344 commit 7356574
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Mk2_3phase_RFdatalog_temp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,13 @@ bool forceFullPower()
previousState = pinState;
#endif

for (auto &bOverrideLoad : b_overrideLoadOn)
{
bOverrideLoad = !pinState;
}
// for (auto &bOverrideLoad : b_overrideLoadOn)
// {
// bOverrideLoad = !pinState;
// }

// Override only load #1
b_overrideLoadOn[0] = !pinState;

return !pinState;
}
Expand Down

0 comments on commit 7356574

Please sign in to comment.