Fix indentation in read_sensor_data

pull/11/head
Jacob McLemore 7 years ago
parent 73675b2f9f
commit 2bfa17abfd

@ -117,11 +117,11 @@ struct SensorData read_sensor_data(int sensor) {
return data; return data;
} }
wiringPiI2CWriteReg16(sensor, INA219_REG_CALIBRATION, x_calValue); wiringPiI2CWriteReg16(sensor, INA219_REG_CALIBRATION, x_calValue);
wiringPiI2CWriteReg16(sensor, INA219_REG_CONFIG, config); wiringPiI2CWriteReg16(sensor, INA219_REG_CONFIG, config);
wiringPiI2CWriteReg16(sensor, INA219_REG_CALIBRATION, x_calValue); wiringPiI2CWriteReg16(sensor, INA219_REG_CALIBRATION, x_calValue);
data.current = wiringPiI2CReadReg16(sensor, INA219_REG_CURRENT) / x_currentDivider; data.current = wiringPiI2CReadReg16(sensor, INA219_REG_CURRENT) / x_currentDivider;
data.power = wiringPiI2CReadReg16(sensor, INA219_REG_POWER) * x_powerMultiplier; data.power = wiringPiI2CReadReg16(sensor, INA219_REG_POWER) * x_powerMultiplier;
return data; return data;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.