diff --git a/src/otp538u/otp538u.cxx b/src/otp538u/otp538u.cxx index 1cb69015..5b78d182 100644 --- a/src/otp538u/otp538u.cxx +++ b/src/otp538u/otp538u.cxx @@ -163,7 +163,7 @@ float OTP538U::objectTemperature() // add +2 to compensate for the -20C and -10C slots below zero int voltOffset = int(ambTemp / 10) + 1 + 2; float voltage = sensorVolts * 10.0; - for (slot=0; slot otp538u_vt_table[slot][voltOffset]) && (voltage < otp538u_vt_table[slot+1][voltOffset]) )