AMSAT-NA / PacSatSW

MIT License
4 stars 1 forks source link

Updating or purging a file should always send a valid dir header to the ground station. #31

Open ac2cz opened 8 months ago

ac2cz commented 8 months ago

This was noticed in #24 when files are corrupted and fail to load:

When the sat is rebooted and the corrupt file is rejected, then the ground station should be able to close its hole. It should request the directory and get an updated header for the header before the corrupted file, with the new and old dates that close out the hole. That requires the upload_time on the adjacent header to be changed otherwise it won't be broadcast. We already update at boot the new and old dates. We would have to see that there is a corrupt file and then update the upload_time on the adjacent header.

This should be fixed in the same manner as the similar bug on pi_pacsat here: https://github.com/ac2cz/pi_pacsat/issues/20