mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-25 07:17:16 +00:00
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:
parent
f1763d34cf
commit
ef3d30c44f
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user