mirror of
https://github.com/skogaby/OpeNITHM.git
synced 2026-09-22 22:58:16 +03:00
Fixes to the calibration procedure for the air towers
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user