Skip to content

Commit b1c419c

Browse files
committed
fixed minor bug
1 parent d4e7f34 commit b1c419c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

raspi/Final_Solution/flight_script.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
SERVER_led.off()
7575

7676

77+
7778
home = '/home/pi'
79+
absolute_tm = time.localtime()
7880

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

99-
absolute_tm = time.localtime()
101+
100102
time_str = "Script Started at " + str(absolute_tm[3]) + ":" + str(absolute_tm[4]) + ":" + str(absolute_tm[5])
101103
time_str += " on " + str(absolute_tm[1]) + "/" + str(absolute_tm[2]) + "/" + str(absolute_tm[0])
102104

0 commit comments

Comments
 (0)