Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rankner7 committed Dec 6, 2019
1 parent d4e7f34 commit b1c419c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion raspi/Final_Solution/flight_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
SERVER_led.off()



home = '/home/pi'
absolute_tm = time.localtime()

store_dir = home + "/rocket_data"
cmd = "mkdir " + store_dir
Expand All @@ -96,7 +98,7 @@ def log_start(msg):
with open(log_file, 'a') as log_writer:
log_writer.write(("\n" + get_time() + msg))

absolute_tm = time.localtime()

time_str = "Script Started at " + str(absolute_tm[3]) + ":" + str(absolute_tm[4]) + ":" + str(absolute_tm[5])
time_str += " on " + str(absolute_tm[1]) + "/" + str(absolute_tm[2]) + "/" + str(absolute_tm[0])

Expand Down

0 comments on commit b1c419c

Please sign in to comment.