diff --git a/afsk/telem.c b/afsk/telem.c index 063b8074..acd7f85c 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -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);