This commit is contained in:
Wolfgang Hottgenroth
2014-11-16 18:39:31 +01:00
parent ca26284cf2
commit 70d589da45
2 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void ADS1210::exec() {
//Serial << "DOR4x8: " << _HEX(res.in[3]) << " " << _HEX(res.in[2]) << " " << _HEX(res.in[1]) << " " << _HEX(res.in[0]) << endl;
//Serial << "DOR1x32: " << _HEX(res.out) << endl;
value = res.out;
value = (res.out & V_MASK);
u = (((float)value) / ((float)V_MAX)) * U_REF;
rRaw = ((((float)V_MAX) / ((float)value)) - 1.0) * R_REF;