Removed old debug output define and sensor trigger debug output, modified VComp and VFol output to mV instead of 10-bit number #changelog
This commit is contained in:
parent
e029364cdc
commit
6976b3908d
2 changed files with 2 additions and 5 deletions
|
|
@ -17,9 +17,6 @@ void digitalWriteFast(uint8_t pin, uint8_t x) {
|
||||||
void pulse() {
|
void pulse() {
|
||||||
digitalWriteFast(TRG_OUT, LOW);
|
digitalWriteFast(TRG_OUT, LOW);
|
||||||
sensorHReading = 1;
|
sensorHReading = 1;
|
||||||
#ifdef DEBUG
|
|
||||||
Serial.println("Trig!");
|
|
||||||
#endif
|
|
||||||
delay(TRG_DUR);
|
delay(TRG_DUR);
|
||||||
digitalWriteFast(TRG_OUT, HIGH);
|
digitalWriteFast(TRG_OUT, HIGH);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -193,11 +193,11 @@ void serialPrintState()
|
||||||
Serial.print(",");
|
Serial.print(",");
|
||||||
|
|
||||||
Serial.print("\"VComp\":");
|
Serial.print("\"VComp\":");
|
||||||
Serial.print(VComp);
|
Serial.print((long) VComp * Vin / 1023);
|
||||||
Serial.print(",");
|
Serial.print(",");
|
||||||
|
|
||||||
Serial.print("\"VFol\":");
|
Serial.print("\"VFol\":");
|
||||||
Serial.print(VFol);
|
Serial.print((long) VFol * Vin / 1023);
|
||||||
Serial.print(",");
|
Serial.print(",");
|
||||||
|
|
||||||
Serial.print("\"Err\":");
|
Serial.print("\"Err\":");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue