From 4ec7458671077a5161cf3cf7211393e97bbca6a2 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 17 Aug 2020 20:29:39 -0400 Subject: [PATCH] Update telem.c --- afsk/telem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afsk/telem.c b/afsk/telem.c index 21a0899d..c8c086ee 100644 --- a/afsk/telem.c +++ b/afsk/telem.c @@ -158,7 +158,7 @@ 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, "-"); + ch = strtok(&bus, "-"); printf("ch: %s\n", ch); ch = strtok(NULL, "-"); printf("ch: %s\n", ch);