Update main.c change to bytes

pacsat-v2.2-tlm2
Alan Johnston 4 weeks ago committed by GitHub
parent 536e03dd0e
commit a6beb17b67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1579,10 +1579,12 @@ void get_tlm_fox() {
fwrite(&now, sizeof(now), 1, telem_binary); fwrite(&now, sizeof(now), 1, telem_binary);
int count; int count;
char byte;
printf("b is: \n"); printf("b is: \n");
for (count = 0; count < 70; count++) { for (count = 0; count < 70; count++) {
fwrite((char)b[count], 1, 1, telem_binary); byte = b[count];
printf("%02X ", b[count]); fwrite(&byte, 1, 1, telem_binary);
printf("%02X ", byte);
bytes_written++; bytes_written++;
} }
printf("\n"); printf("\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.