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

@ -155,6 +155,14 @@ struct SensorConfig config_sensor(char *bus, int address, int milliAmps) {
return (data);
}
//char st[] ="Where there is will, there is a way.";
char *ch;
const char s[2] = "-";
ch = strtok(bus, "-");
printf("ch: %s\n", ch);
ch = strtok(NULL, "-");
printf("ch: %s\n", ch);
char result[128];
int pos = strlen(bus) / sizeof(bus[0]) - 1;
// printf("Bus size %d \n", pos);

Loading…
Cancel
Save

Powered by TurnKey Linux.