V_MASK
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user