From 0a0cc842f3c65fb20268e7b116e85c4448c5e785 Mon Sep 17 00:00:00 2001 From: Avi Bagla Date: Sat, 22 Jun 2024 19:35:28 -0400 Subject: [PATCH] Update programmable_air.cpp Adding a debug enclosure for a statement that was printing a lot to the serial monitor! --- src/programmable_air.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/programmable_air.cpp b/src/programmable_air.cpp index bf31015..2e48eed 100644 --- a/src/programmable_air.cpp +++ b/src/programmable_air.cpp @@ -238,7 +238,9 @@ int showPressure(int atmospheric_pressure, int threshold){ atmospheric_pressure = calibratedPressure; } int pressure = readPressure(); - Serial.println(pressure); + #ifdef DEBUG + Serial.println(pressure); + #endif int pressure_diff = pressure - atmospheric_pressure;