mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
Catch the one that got away
This commit is contained in:
parent
ab7fe3138d
commit
6a50487bf0
@ -22,7 +22,7 @@ class AvrFirmwareUpdater(FirmwareUpdater):
|
|||||||
|
|
||||||
def _updateFirmware(self) -> None:
|
def _updateFirmware(self) -> None:
|
||||||
try:
|
try:
|
||||||
hex_file = intelHex.readHex(self._firmware_location)
|
hex_file = intelHex.readHex(self._firmware_file)
|
||||||
assert len(hex_file) > 0
|
assert len(hex_file) > 0
|
||||||
except (FileNotFoundError, AssertionError):
|
except (FileNotFoundError, AssertionError):
|
||||||
Logger.log("e", "Unable to read provided hex file. Could not update firmware.")
|
Logger.log("e", "Unable to read provided hex file. Could not update firmware.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user