Skip to content

Commit 35e0d9a

Browse files
Paolo CalaoGiuseppe Lumia
Paolo Calao
and
Giuseppe Lumia
authored
Update firmware/generator.py
Co-authored-by: Giuseppe Lumia <[email protected]>
1 parent a03f77e commit 35e0d9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firmware/generator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def sha2(file_path):
4141
return hashlib.sha256(f.read()).hexdigest()
4242

4343
# Runs arduino-cli
44-
def arduino_cli(cli_path, args=[]):
44+
def arduino_cli(cli_path, args=None):
45+
if args is None:
46+
args=[]
4547
res = subprocess.run([cli_path, *args], capture_output=True, text=True, check=True)
4648
return res.stdout, res.stderr
4749

0 commit comments

Comments
 (0)