fixed CJC calibration rule
Did not calibrate if *handle temp* was higher than *tip temp*.
This commit is contained in:
@@ -98,7 +98,7 @@ void performCJCC() {
|
|||||||
// Calibrate Cold Junction Compensation directly at boot, before internal components get warm.
|
// Calibrate Cold Junction Compensation directly at boot, before internal components get warm.
|
||||||
OLED::refresh();
|
OLED::refresh();
|
||||||
osDelay(50);
|
osDelay(50);
|
||||||
if (!isTipDisconnected() && (TipThermoModel::getTipInC() - getHandleTemperature(0) / 10) < 10) {
|
if (!isTipDisconnected() && abs( int(TipThermoModel::getTipInC() - getHandleTemperature(0) / 10)) < 10) {
|
||||||
uint16_t setoffset = 0;
|
uint16_t setoffset = 0;
|
||||||
// If the thermo-couple at the end of the tip, and the handle are at
|
// If the thermo-couple at the end of the tip, and the handle are at
|
||||||
// equilibrium, then the output should be zero, as there is no temperature
|
// equilibrium, then the output should be zero, as there is no temperature
|
||||||
|
|||||||
Reference in New Issue
Block a user