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) {
|
if (BlinkCount > 0) {
|
||||||
BlinkState = !BlinkState;
|
BlinkState = !BlinkState;
|
||||||
digitalWriteFast(ERR_LED, BlinkState);
|
digitalWriteFast(ERR_LED, BlinkState);
|
||||||
digitalWriteFast(TRG_OUT, BlinkState);
|
//digitalWriteFast(TRG_OUT, BlinkState);
|
||||||
--BlinkCount;
|
--BlinkCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -188,6 +188,8 @@ void loop() {
|
||||||
// } else {
|
// } else {
|
||||||
// Check for error state
|
// Check for error state
|
||||||
// checkError();
|
// checkError();
|
||||||
|
} else {
|
||||||
|
digitalWriteFast(ERR_LED, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print state if debug is on
|
// Print state if debug is on
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ void adjustGain() {
|
||||||
void pzConCheck () {
|
void pzConCheck () {
|
||||||
PZ_STATE = digitalRead(PZDET_PIN);
|
PZ_STATE = digitalRead(PZDET_PIN);
|
||||||
if (PZ_STATE == PZDET) {
|
if (PZ_STATE == PZDET) {
|
||||||
digitalWriteFast(TRG_OUT, LOGIC);
|
//digitalWriteFast(TRG_OUT, LOGIC);
|
||||||
ERR_STATE = 1;
|
ERR_STATE = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue