implenet new fwUp behaviour in py

This commit is contained in:
2024-02-08 02:45:09 +01:00
parent 19bcaaf18c
commit 786353d4bd
2 changed files with 77 additions and 25 deletions

11
tools/update_devices.py Normal file
View File

@@ -0,0 +1,11 @@
import subprocess
import sys
def send_fw(firmware, ids):
for id in ids:
subprocess.call(['python', 'send_fw.py', firmware, str(id)])
if __name__ == "__main__":
firmware = sys.argv[1]
ids = sys.argv[2].split(';') # Split the ID string into a list
send_fw(firmware, ids)