Update telem.c

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.