Added debug output to trigger function #featureadd
This commit is contained in:
parent
b207482bc1
commit
952a1cdb5f
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ void digitalWriteFast(uint8_t pin, uint8_t x) {
|
|||
void pulse() {
|
||||
digitalWriteFast(TRG_OUT, LOW);
|
||||
sensorHReading = 1;
|
||||
#ifdef DEBUG
|
||||
Serial.println("Trig!");
|
||||
#endif
|
||||
delay(TRG_DUR);
|
||||
digitalWriteFast(TRG_OUT, HIGH);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue