reduced sleep time to 0.01

pull/33/merge
Alan Johnston 6 years ago
parent 61db1dd919
commit bd1ce541ce

@ -166,7 +166,7 @@ struct SensorData read_sensor_data(struct SensorConfig sensor) {
wiringPiI2CWriteReg16(sensor.fd, INA219_REG_CALIBRATION, sensor.calValue);
wiringPiI2CWriteReg16(sensor.fd, INA219_REG_CONFIG, sensor.config);
wiringPiI2CWriteReg16(sensor.fd, INA219_REG_CALIBRATION, sensor.calValue);
sleep(1);
sleep(0.01);
int value = wiringPiI2CReadReg16(sensor.fd, INA219_REG_CURRENT);
if (value == -1)
{

Loading…
Cancel
Save

Powered by TurnKey Linux.