Skip to content

Commit

Permalink
fixed new led behavior, was toggling instead of blipping #bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Jan 17, 2020
1 parent 7062179 commit 1ed6701
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -144,7 +144,7 @@ void loop() {
if (BlinkCount > 0) {
BlinkState = !BlinkState;
digitalWriteFast(ERR_LED, BlinkState);
digitalWriteFast(TRG_OUT, BlinkState);
//digitalWriteFast(TRG_OUT, BlinkState);
--BlinkCount;
}

Expand Down Expand Up @@ -188,6 +188,8 @@ void loop() {
// } else {
// Check for error state
// checkError();
} else {
digitalWriteFast(ERR_LED, 0);
}

// Print state if debug is on
Expand Down
Expand Up @@ -187,7 +187,7 @@ void adjustGain() {
void pzConCheck () {
PZ_STATE = digitalRead(PZDET_PIN);
if (PZ_STATE == PZDET) {
digitalWriteFast(TRG_OUT, LOGIC);
//digitalWriteFast(TRG_OUT, LOGIC);
ERR_STATE = 1;
}
}
Expand Down

0 comments on commit 1ed6701

Please sign in to comment.