From 41844043e5ec6dd54f6563e8acf59ce376f609dd Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 21 Jan 2020 13:46:43 -0500 Subject: [PATCH] aprs by default, i2c-0 bus --- afsk/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 72493436..38a82a33 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -232,7 +232,7 @@ char dest_addr[5] = "CQ"; int main(int argc, char *argv[]) { - mode = FSK; + mode = AFSK; // FSK; Default is AFSK, 3 frames frameCnt = 3; if (argc > 1) { @@ -314,10 +314,10 @@ int main(int argc, char *argv[]) { sensor[PLUS_Y] = config_sensor("/dev/i2c-1", 0x41, 400); sensor[BUS] = config_sensor("/dev/i2c-1", 0x44, 400); sensor[BAT] = config_sensor("/dev/i2c-1", 0x45, 400); - sensor[PLUS_Z] = config_sensor("/dev/i2c-4", 0x40, 400); - sensor[MINUS_X] = config_sensor("/dev/i2c-4", 0x41, 400); - sensor[MINUS_Y] = config_sensor("/dev/i2c-4", 0x44, 400); - sensor[MINUS_Z] = config_sensor("/dev/i2c-4", 0x45, 400); + sensor[PLUS_Z] = config_sensor("/dev/i2c-0", 0x40, 400); + sensor[MINUS_X] = config_sensor("/dev/i2c-0", 0x41, 400); + sensor[MINUS_Y] = config_sensor("/dev/i2c-0", 0x44, 400); + sensor[MINUS_Z] = config_sensor("/dev/i2c-0", 0x45, 400); int ret; //uint8_t data[1024];