Log which firmware file you're about to upload

Kind of critical information, really.

Contributes to issue CURA-5749.
This commit is contained in:
Ghostkeeper 2018-10-12 13:24:09 +02:00
parent 3c626453a6
commit 85b835118d
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -160,6 +160,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
if self._connection_state != ConnectionState.closed: if self._connection_state != ConnectionState.closed:
self.close() self.close()
Logger.log("i", "Uploading hex file from: {firmware_location}".format(firmware_location = self._firmware_location))
try: try:
hex_file = intelHex.readHex(self._firmware_location) hex_file = intelHex.readHex(self._firmware_location)
assert len(hex_file) > 0 assert len(hex_file) > 0