Skip to content

Commit aa9131f

Browse files
committed
Update voltage wording to be consistent
1 parent fba3696 commit aa9131f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/AnalogIn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class AnalogIn {
102102
*
103103
* @returns A floating-point value representing the current input voltage, measured in volts.
104104
*/
105-
float read_volts();
105+
float read_voltage();
106106

107107
/**
108108
* Sets this AnalogIn instance's reference voltage.

drivers/source/AnalogIn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ unsigned short AnalogIn::read_u16()
5454
return ret;
5555
}
5656

57-
float AnalogIn::read_volts()
57+
float AnalogIn::read_voltage()
5858
{
5959
return (this->read() * this->vref);
6060
}

0 commit comments

Comments
 (0)