Arduio 4 register telemetry transmitted if present

pull/2/head
Alan Johnston 7 years ago
parent 7761aec9e9
commit d81fff6df9

@ -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);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.