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:
Vsevolod Merenkov 2019-09-30 03:02:14 +03:00
parent e029364cdc
commit 6976b3908d
2 changed files with 2 additions and 5 deletions

View file

@ -17,9 +17,6 @@ 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);
}

View file

@ -193,11 +193,11 @@ void serialPrintState()
Serial.print(",");
Serial.print("\"VComp\":");
Serial.print(VComp);
Serial.print((long) VComp * Vin / 1023);
Serial.print(",");
Serial.print("\"VFol\":");
Serial.print(VFol);
Serial.print((long) VFol * Vin / 1023);
Serial.print(",");
Serial.print("\"Err\":");