mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +08:00
Firmware update logging now uses correct path
CURA-955
This commit is contained in:
parent
bb7f6f87c7
commit
71e6733c8e
@ -119,7 +119,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin, Extension):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
# Should only happen in dev environments where the resources/firmware folder is absent.
|
# Should only happen in dev environments where the resources/firmware folder is absent.
|
||||||
self._usb_output_devices[printer_connection].setProgress(100, 100)
|
self._usb_output_devices[printer_connection].setProgress(100, 100)
|
||||||
Logger.log("w", "No firmware found for printer %s called '%s'" % (printer_connection, self.getDefaultFirmwareName()))
|
Logger.log("w", "No firmware found for printer %s called '%s'" % (printer_connection, file_name)
|
||||||
Message(i18n_catalog.i18nc("@info",
|
Message(i18n_catalog.i18nc("@info",
|
||||||
"Could not find firmware required for the printer at %s.") % printer_connection).show()
|
"Could not find firmware required for the printer at %s.") % printer_connection).show()
|
||||||
self._firmware_view.close()
|
self._firmware_view.close()
|
||||||
@ -134,7 +134,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin, Extension):
|
|||||||
self._usb_output_devices[serial_port].updateFirmware(file_name)
|
self._usb_output_devices[serial_port].updateFirmware(file_name)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
self._firmware_view.close()
|
self._firmware_view.close()
|
||||||
Logger.log("e", "Could not find firmware required for this machine called '%s'" % (self.getDefaultFirmwareName()))
|
Logger.log("e", "Could not find firmware required for this machine called '%s'", file_name)
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user