Initialise idle count properly

This is a field so it should always get initialised in the __init__ function.

Fixes #5218.
This commit is contained in:
Ghostkeeper 2019-01-25 12:03:01 +01:00
parent 064e61c262
commit 91dc3713ae
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -55,6 +55,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
self._update_thread = Thread(target = self._update, daemon = True)
self._last_temperature_request = None # type: Optional[int]
self._firmware_idle_count = 0
self._is_printing = False # A print is being sent.