Update xsns_47_max31865.ino (#17661)

MAX31865 - make use of the already defined element 'ErrorCode' to transport the MAX31865 Fault Status Register to the JSON element 'Error'
This commit is contained in:
Reinhard 2023-01-11 11:50:16 +01:00 committed by GitHub
parent f1763d34cf
commit ef3d30c44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -346,6 +346,7 @@ void MAX31865_GetResult(void) {
uint16_t rtd;
rtd = max31865[i].readRTD();
MAX31865_Result[i].ErrorCode = max31865[i].readFault();
MAX31865_Result[i].Rtd = rtd;
MAX31865_Result[i].PtdResistance = max31865[i].rtd_to_resistance(rtd, RefRes[i]);
MAX31865_Result[i].PtdTemp = ConvertTemp(max31865[i].rtd_to_temperature(rtd, PtdRes[i], RefRes[i]) + PtdBias[i]);