File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments