Update telem.c

pull/55/head
alanbjohnston 6 years ago committed by GitHub
parent 92847b48d0
commit c49b3a0c18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -155,10 +155,11 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
return (data);
}
//char st[] ="Where there is will, there is a way.";
char str[100];
strcpy (str, &bus);
char *ch;
const char dash[2] = "-";
ch = strtok(bus, dash);
ch = strtok(str, dash);
printf("ch: %s\n", ch);
ch = strtok(NULL, dash);
printf("ch: %s\n", ch);

Loading…
Cancel
Save

Powered by TurnKey Linux.