Update Payload_BME280_MPU6050_XS.ino use the new calibration values

beta-cal
Alan Johnston 2 years ago committed by GitHub
parent 828615d2a2
commit 3681046e7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -397,7 +397,17 @@ void loop() {
eeprom_word_write(calibration * 2 + 4 , (int)(temp * 10.0) + 0.5);
eeprom_word_write(calibration * 2 + 5, sensorValue);
calibration = (calibration + 1) % 2;
if (calibration == 0) {
T1 = temp;
R1 = sensorValue;
calibration = 1;
} else
T2 = temp;
R2 = sensorValue;
calibration = 0;
}
// calibration = (calibration + 1) % 2;
// Serial.println(calibration + 1);
#if !defined(ARDUINO_ARCH_MBED_RP2040) && defined(ARDUINO_ARCH_RP2040) // if Raspberry Pi RP2040 Boards is used in Arduino IDE

Loading…
Cancel
Save

Powered by TurnKey Linux.