From 5d3d6335669aef7e26c6de5e6f0e26a6d507dd11 Mon Sep 17 00:00:00 2001 From: George Beckstein Date: Fri, 3 Apr 2020 04:21:08 -0400 Subject: [PATCH] Update voltage wording to be consistent --- drivers/AnalogIn.h | 2 +- drivers/source/AnalogIn.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/AnalogIn.h b/drivers/AnalogIn.h index d227edfd3f..dafb0f50ed 100644 --- a/drivers/AnalogIn.h +++ b/drivers/AnalogIn.h @@ -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. diff --git a/drivers/source/AnalogIn.cpp b/drivers/source/AnalogIn.cpp index a26b01bdfd..8c77426b31 100644 --- a/drivers/source/AnalogIn.cpp +++ b/drivers/source/AnalogIn.cpp @@ -54,7 +54,7 @@ unsigned short AnalogIn::read_u16() return ret; } -float AnalogIn::read_volts() +float AnalogIn::read_voltage() { return (this->read() * this->vref); }