Update main.c print b

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

@ -1569,6 +1569,14 @@ void get_tlm_fox() {
{
FILE *telem_binary = fopen("/home/pi/CubeSatSim/tlm.bin", "wb");
if (telem_binary != NULL) {
int count;
printf("b is: \n");
for (count = 0; count < 70; count++) {
printf("%02X", b[count]);
}
printf("\n");
unsigned int now = (unsigned int)time(0);
fwrite(&now, sizeof(now), 1, telem_binary);
int bytes_written = fwrite(b, sizeof(char), 70, telem_binary);

Loading…
Cancel
Save

Powered by TurnKey Linux.