fixed new led behavior, was toggling instead of blipping #bugfix
This commit is contained in:
parent
7062179d58
commit
1ed6701063
2 changed files with 4 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ void loop() {
|
|||
if (BlinkCount > 0) {
|
||||
BlinkState = !BlinkState;
|
||||
digitalWriteFast(ERR_LED, BlinkState);
|
||||
digitalWriteFast(TRG_OUT, BlinkState);
|
||||
//digitalWriteFast(TRG_OUT, BlinkState);
|
||||
--BlinkCount;
|
||||
}
|
||||
|
||||
|
|
@ -188,6 +188,8 @@ void loop() {
|
|||
// } else {
|
||||
// Check for error state
|
||||
// checkError();
|
||||
} else {
|
||||
digitalWriteFast(ERR_LED, 0);
|
||||
}
|
||||
|
||||
// Print state if debug is on
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue