Add timestamp at start of tlm

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

@ -1568,8 +1568,10 @@ void get_tlm_fox() {
{
FILE *telem_binary = fopen("/home/pi/CubeSatSim/tlm.bin", "wb");
if (telem_binary != NULL) {
time_t now = time(0);
fwrite(b, sizeof(how), 1, &now);
int bytes_written = fwrite(b, sizeof(char), 70, telem_binary);
printf("Writing %d bytes to tlm.bin\n", bytes_written);
printf("Writing %d bytes to tlm.bin\n", bytes_written + 4);
fclose(telem_binary);
}
else

Loading…
Cancel
Save

Powered by TurnKey Linux.