From 9f8dfa5ea9219863a1d8d8bb0c2171bc8bab13c6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 6 Feb 2025 15:50:51 -0500 Subject: [PATCH] Update fc_block_decode.py image_count modulo 256 --- groundstation/fc_block_decode.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groundstation/fc_block_decode.py b/groundstation/fc_block_decode.py index c3424e9f..61aba0b3 100644 --- a/groundstation/fc_block_decode.py +++ b/groundstation/fc_block_decode.py @@ -63,6 +63,7 @@ if __name__ == "__main__": print("End of image") system("sudo mv image_file image_file" + str(image_count)) print("Image count: ") - print(image_count++) + print(image_count) + image_count = (image_count + 1) % 256 else: print("Unknown Sat Id or Frame")