fix issue with old reading
- old reading shoould be ignored - fix channels for CTI7
This commit is contained in:
@@ -58,9 +58,8 @@ class Sensor340(HasIO, Readable):
|
||||
return ERROR, 'temperature overrange'
|
||||
if c >= 16:
|
||||
return ERROR, 'temperature underrange'
|
||||
if c >= 2:
|
||||
return ERROR, 'old reading'
|
||||
if c >= 1:
|
||||
# do not check for old reading -> this happens regularely on NTCs with T comp
|
||||
if c % 2:
|
||||
return ERROR, 'invalid reading'
|
||||
return IDLE, ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user