Update main.c

pull/1/head
alanbjohnston 7 years ago committed by GitHub
parent 702c2f0fd0
commit c18174271b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -244,14 +244,14 @@ int get_tlm(int tlm[][5]) {
char * pch;
// printf ("Splitting string \"%s\" into tokens:\n",str);
// pch = strtok (str," ");
int j = 0;
i = 0;
pch = strtok (cmdbuffer," ,.-");
while (pch != NULL)
{
strcpy(mopower[j], pch);
printf ("mopwer[%d]=%s\n",j,mopower[j]); // pch);
strcpy(mopower[i], pch);
printf ("mopwer[%d]=%s\n",i,mopower[i]); // pch);
pch = strtok (NULL, " ");
j++;
i++;
}
printf("Battery voltage = %s\n", mopower[16]);

Loading…
Cancel
Save

Powered by TurnKey Linux.