From 8c1b666f0ae8301c325fe30cbc36f5a428a43475 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 19 Jan 2020 12:10:07 -0500 Subject: [PATCH] changed to i2c-3 --- afsk/telem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/telem.c b/afsk/telem.c index 9d9a369a..589ace85 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -181,22 +181,22 @@ int main(int argc, char *argv[]) { printf("+Y | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n", PLUS_Y, readingV.voltage, readingV.current, readingV.power); - sensorV = config_sensor("/dev/i2c-0", 0x40, 400); + sensorV = config_sensor("/dev/i2c-3", 0x40, 400); readingV = read_sensor_data(sensorV); printf("+Z | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n", PLUS_Z, readingV.voltage, readingV.current, readingV.power); - sensorV = config_sensor("/dev/i2c-0", 0x41, 400); + sensorV = config_sensor("/dev/i2c-3", 0x41, 400); readingV = read_sensor_data(sensorV); printf("-X | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n", MINUS_X, readingV.voltage, readingV.current, readingV.power); - sensorV = config_sensor("/dev/i2c-0", 0x44, 400); + sensorV = config_sensor("/dev/i2c-3", 0x44, 400); readingV = read_sensor_data(sensorV); printf("-Y | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n", MINUS_Y, readingV.voltage, readingV.current, readingV.power); - sensorV = config_sensor("/dev/i2c-0", 0x45, 400); + sensorV = config_sensor("/dev/i2c-3", 0x45, 400); readingV = read_sensor_data(sensorV); printf("-Z | sensor[%d] % 4.2fV % 6.1fmA % 6.1fmW \n", MINUS_Z, readingV.voltage, readingV.current, readingV.power);