From d81fff6df9f3c0c9ff772e0a1f92eef31c3f803a Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 6 Apr 2019 14:26:44 -0400 Subject: [PATCH] Arduio 4 register telemetry transmitted if present --- afsk/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index 8cea0a95..404d1feb 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -122,7 +122,7 @@ int main(void) { tempSensor = wiringPiI2CSetupInterface("/dev/i2c-3", 0x48); } - fprintf(stderr,"tempSensor: %d \n",tempSensor); +// fprintf(stderr,"tempSensor: %d \n",tempSensor); int arduinoI2C; if ((arduinoI2C = open("/dev/i2c-0", O_RDWR)) < 0) @@ -213,7 +213,7 @@ int main(void) { sprintf(tlm_str, " %04x",wiringPiI2CReadReg16(arduinoI2C,reg)); printf("%s \n",tlm_str); strcat(str,tlm_str); /* Append payload telemetry */ - usleep(500); + usleep(100000); } }