Fix master fatal error (#2206)
* print the fatal that caused test failure * fix the error
This commit is contained in:
parent
7e01ad742c
commit
aaad4d758c
|
@ -57,6 +57,11 @@ void configTherm(FunctionalSensor &sensor,
|
||||||
FuncPair &p,
|
FuncPair &p,
|
||||||
ThermistorConf &config,
|
ThermistorConf &config,
|
||||||
bool isLinear) {
|
bool isLinear) {
|
||||||
|
// nothing to do if no channel
|
||||||
|
if (!isAdcChannelValid(config.adcChannel)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Configure the conversion function for this sensor
|
// Configure the conversion function for this sensor
|
||||||
sensor.setFunction(configureTempSensorFunction(config.config, p, isLinear));
|
sensor.setFunction(configureTempSensorFunction(config.config, p, isLinear));
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,6 @@ public enum TestHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void assertNotFatal() {
|
public void assertNotFatal() {
|
||||||
assertNull("Fatal not expected", criticalError);
|
assertNull("Fatal not expected: " + criticalError, criticalError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue