Skip to content

Commit 174eb2c

Browse files
committed
Fix styling
1 parent 6a4165e commit 174eb2c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

drivers/source/AnalogIn.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,18 @@ unsigned short AnalogIn::read_u16()
5454
return ret;
5555
}
5656

57-
float AnalogIn::read_volts() {
58-
float ret = this->read();
59-
return (ret*this->vref);
57+
float AnalogIn::read_volts()
58+
{
59+
return (this->read() * this->vref);
6060
}
6161

62-
void AnalogIn::set_reference_voltage(float vref) {
62+
void AnalogIn::set_reference_voltage(float vref)
63+
{
6364
this->vref = vref;
6465
}
6566

66-
float AnalogIn::get_reference_voltage(void) {
67+
float AnalogIn::get_reference_voltage(void)
68+
{
6769
return this->vref;
6870
}
6971

0 commit comments

Comments
 (0)