Fixed ADC current meter for negative offset.

This commit is contained in:
mikeller 2017-03-30 01:35:55 +13:00
parent 13da4de774
commit b71a5a808f
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ typedef struct currentMeterADCState_s {
typedef struct currentSensorADCConfig_s {
int16_t scale; // scale the current sensor output voltage to milliamps. Value in 1/10th mV/A
uint16_t offset; // offset of the current sensor in millivolt steps
int16_t offset; // offset of the current sensor in millivolt steps
} currentSensorADCConfig_t;
PG_DECLARE(currentSensorADCConfig_t, currentSensorADCConfig);