diff --git a/afsk/telem.c b/afsk/telem.c index c8c086ee..fce8f63e 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -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];