Update voltage wording to be consistent

pull/12471/head
George Beckstein 2020-04-03 04:21:08 -04:00
parent 7b70843632
commit 5d3d633566
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -54,7 +54,7 @@ unsigned short AnalogIn::read_u16()
return ret;
}
float AnalogIn::read_volts()
float AnalogIn::read_voltage()
{
return (this->read() * this->vref);
}