mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-05-06 20:57:36 +02:00
katapult: Update flash_can.py to succesor tool flashtool.py
This updates the outdated CanBoot flash_can.py with the latest version of Katapult flashtool.py, which should be fully backwards compatible. Signed-off-by: Robert Schiele <rschiele@gmail.com>
This commit is contained in:
committed by
KevinOConnor
parent
41b77b66df
commit
29e2652777
@@ -97,12 +97,12 @@ def call_flashcan(device, binfile):
|
||||
" %s -m pip install pyserial\n\n" % (sys.executable,)
|
||||
)
|
||||
sys.exit(-1)
|
||||
args = [sys.executable, "lib/canboot/flash_can.py", "-d",
|
||||
args = [sys.executable, "lib/katapult/flashtool.py", "-d",
|
||||
device, "-f", binfile]
|
||||
sys.stderr.write(" ".join(args) + '\n\n')
|
||||
res = subprocess.call(args)
|
||||
if res != 0:
|
||||
sys.stderr.write("Error running flash_can.py\n")
|
||||
sys.stderr.write("Error running flashtool.py\n")
|
||||
sys.exit(-1)
|
||||
|
||||
def flash_canboot(options, binfile):
|
||||
|
||||
Reference in New Issue
Block a user