Skip to content

Commit d9d331f

Browse files
smartport batt sensor: remove variable name clash
1 parent bad7da8 commit d9d331f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/sensors/battery.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ static void updateBatteryVoltage(timeUs_t timeDelta, bool justConnected)
297297

298298
#if defined(USE_SMARTPORT_MASTER)
299299
case VOLTAGE_SENSOR_SMARTPORT:
300-
int16_t * smartportData = smartportMasterGetVoltageData();
301-
if (smartportData) {
302-
vbat = *smartportData;
300+
int16_t * smartportVoltageData = smartportMasterGetVoltageData();
301+
if (smartportVoltageData) {
302+
vbat = *smartportVoltageData;
303303
} else {
304304
vbat = 0;
305305
}
@@ -614,9 +614,9 @@ void currentMeterUpdate(timeUs_t timeDelta)
614614
#endif
615615
#if defined(USE_SMARTPORT_MASTER)
616616
case CURRENT_SENSOR_SMARTPORT:
617-
int16_t * smartportData = smartportMasterGetCurrentData();
618-
if (smartportData) {
619-
amperage = *smartportData;
617+
int16_t * smartportCurrentData = smartportMasterGetCurrentData();
618+
if (smartportCurrentData) {
619+
amperage = *smartportCurrentData;
620620
} else {
621621
amperage = 0;
622622
}

0 commit comments

Comments
 (0)