mirror of https://github.com/ARMmbed/mbed-os.git
Update voltage wording to be consistent
parent
7b70843632
commit
5d3d633566
|
|
@ -102,7 +102,7 @@ public:
|
|||
*
|
||||
* @returns A floating-point value representing the current input voltage, measured in volts.
|
||||
*/
|
||||
float read_volts();
|
||||
float read_voltage();
|
||||
|
||||
/**
|
||||
* Sets this AnalogIn instance's reference voltage.
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ unsigned short AnalogIn::read_u16()
|
|||
return ret;
|
||||
}
|
||||
|
||||
float AnalogIn::read_volts()
|
||||
float AnalogIn::read_voltage()
|
||||
{
|
||||
return (this->read() * this->vref);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue