From ad35fdedbabe6358127e781df965b479d4bbbaed Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 24 Jul 2019 06:15:58 -0400 Subject: [PATCH] Update main.c --- afsk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/main.c b/afsk/main.c index 5012e747..c2510b1d 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -119,7 +119,7 @@ struct SensorData read_sensor_data(struct SensorConfig sensor) { // float valuec3 = (float)(twos); delay(50); wiringPiI2CWrite(sensor.fd, INA219_REG_CURRENT); - delay(1); // Max 12-bit conversion time is 586us per sample + delay(50); // Max 12-bit conversion time is 586us per sample int valueC = ((wiringPiI2CRead(sensor.fd) << 8 ) | wiringPiI2CRead (sensor.fd)); int twos = twosToInt(valueC, 16); float valuec3 = (float)(twos);