Fixes to the calibration procedure for the air towers

This commit is contained in:
skogaby
2020-07-08 00:27:44 -05:00
parent 21575de9f0
commit 9f8f1a2525
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -287,12 +287,15 @@ void AirSensor::analogCalibrate()
setHalfLEDs(CRGB::Green, side);
delay(3000);
inputDetected = false;
for (int j = 0; j < 6; j++) lastReadings[j] = 0;
}
saveConfig();
}
else
{
loadConfig();
for (int i = 0; i < 6; i++)
{
// just set the keys to calibrated
+2 -2
View File
@@ -105,7 +105,7 @@ void initializeController() {
// Initialize air sensor
if (sensor != NULL) delete sensor;
sensor = new AirSensor(2000, 200);
sensor = new AirSensor(1000, 200);
// Display the number of air sensors that were calibrated
for (CRGB& led : leds)
@@ -164,7 +164,7 @@ void checkPollRate() {
void loop() {
// Uncomment this code to see benchmark in serial (in Hz)
// checkPollRate();
checkPollRate();
// Check for serial messages
if (Serial.available() >= 100)