Fix master fatal error (#2206)

* print the fatal that caused test failure

* fix the error
This commit is contained in:
Matthew Kennedy 2021-01-09 12:13:43 -08:00 committed by GitHub
parent 6b14367d6e
commit 8d5495111e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -57,6 +57,11 @@ void configTherm(FunctionalSensor &sensor,
FuncPair &p,
ThermistorConf &config,
bool isLinear) {
// nothing to do if no channel
if (!isAdcChannelValid(config.adcChannel)) {
return;
}
// Configure the conversion function for this sensor
sensor.setFunction(configureTempSensorFunction(config.config, p, isLinear));
}

View File

@ -18,6 +18,6 @@ public enum TestHelper {
}
public void assertNotFatal() {
assertNull("Fatal not expected", criticalError);
assertNull("Fatal not expected: " + criticalError, criticalError);
}
}