Correcting ADC full-scale voltage
This commit is contained in:
parent
2d20063848
commit
818047775b
@ -401,7 +401,8 @@ impl<DELAY> PowerMeasurementInterface for PounderDevices<DELAY> {
|
||||
_ => return Err(Error::InvalidChannel),
|
||||
};
|
||||
|
||||
// Convert analog percentage to voltage.
|
||||
Ok(adc_scale * 3.3)
|
||||
// Convert analog percentage to voltage. Note that the ADC uses an external 2.048V analog
|
||||
// reference.
|
||||
Ok(adc_scale * 2.048)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user