Skip to content

Commit

Permalink
[bebop] Setting time when uploading ap.elf (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
wv-tud authored and podhrmic committed Mar 19, 2017
1 parent ccad216 commit 7f218be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sw/tools/parrot/bebop.py
Expand Up @@ -139,9 +139,15 @@ def bebop_status():
print('Uploading \'' + f[1] + "\' from " + f[0] + " to " + args.folder)
parrot_utils.uploadfile(ftp, args.folder + "/" + f[1], file(args.file, "rb"))
sleep(0.5)

from datetime import datetime
parrot_utils.execute_command(tn, "date --set '" + datetime.now().strftime('%Y-%m-%d %H:%M:%S') + "'")
print("Set date on Bebop to " + datetime.now().strftime('%Y-%m-%d %H:%M:%S'))

parrot_utils.execute_command(tn, "chmod 777 /data/ftp/" + args.folder + "/" + f[1])
parrot_utils.execute_command(tn, "/data/ftp/" + args.folder + "/" + f[1] + " > /dev/null 2>&1 &")
print("#pragma message: Upload and Start of ap.elf to Bebop succesful !")


elif args.command == 'upload_file':
# Split filename and path
Expand Down

0 comments on commit 7f218be

Please sign in to comment.