Update fc_block_decode.py write line from csv

fc-c
Alan Johnston 10 months ago committed by GitHub
parent 06de1ec262
commit 7688acf93b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -162,11 +162,13 @@ if __name__ == "__main__":
with open(html_dir + "index.html", "w") as html_file: with open(html_dir + "index.html", "w") as html_file:
html_file.write(head_string) html_file.write(head_string)
html_file.write(telem_string) html_file.write(telem_string)
html_file.write("<br>")
with open(html_dir + "/images/telem.csv.txt", "r") as csv_file: with open(html_dir + "/images/telem.csv.txt", "r") as csv_file:
csv_file.read(old_tlm_string) for line in csv_file:
html_file.write(old_tlm_string) html_file.write(line)
html_file.write("<br>")
html_file.write(tlm_string) html_file.write(tlm_string)
html_file.write("\n") html_file.write("<br>")
html_file.write(foot_string) html_file.write(foot_string)
else: else:
print("Payload not an image!") print("Payload not an image!")

Loading…
Cancel
Save

Powered by TurnKey Linux.