clang format and fix millivolts returned from bus voltage
This commit is contained in:
parent
0b61e2b8a9
commit
315e4e8791
2 changed files with 3 additions and 3 deletions
|
|
@ -36,9 +36,9 @@
|
|||
#include "drivers/WipperSnapper_I2C_Driver_HTU21D.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_HTU31D.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA219.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA228.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA237.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA238.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA228.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_INA260.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_LC709203F.h"
|
||||
#include "drivers/WipperSnapper_I2C_Driver_LPS22HB.h"
|
||||
|
|
@ -174,7 +174,7 @@ private:
|
|||
WipperSnapper_I2C_Driver_INA219 *_ina219 = nullptr;
|
||||
WipperSnapper_I2C_Driver_INA237 *_ina237 = nullptr;
|
||||
WipperSnapper_I2C_Driver_INA238 *_ina238 = nullptr;
|
||||
WipperSnapper_I2C_Driver_INA228 *_ina228 = nullptr;
|
||||
WipperSnapper_I2C_Driver_INA228 *_ina228 = nullptr;
|
||||
WipperSnapper_I2C_Driver_INA260 *_ina260 = nullptr;
|
||||
WipperSnapper_I2C_Driver_LTR329_LTR303 *_ltr329 = nullptr;
|
||||
WipperSnapper_I2C_Driver_LTR390 *_ltr390 = nullptr;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ bool WipperSnapper_I2C_Driver_INA260::begin() {
|
|||
/*******************************************************************************/
|
||||
bool WipperSnapper_I2C_Driver_INA260::getEventVoltage(
|
||||
sensors_event_t *voltageEvent) {
|
||||
voltageEvent->voltage = _ina260->readBusVoltage();
|
||||
voltageEvent->voltage = _ina260->readBusVoltage() / 1000.0f;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue