mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-02 19:43:57 -06:00
Renaming typeOfDevice -> type_of_device
This commit is contained in:
parent
0f6c7a9405
commit
808417b152
1 changed files with 3 additions and 3 deletions
|
@ -191,12 +191,12 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
|
||||||
info = zeroconf.get_service_info(service_type, name)
|
info = zeroconf.get_service_info(service_type, name)
|
||||||
|
|
||||||
if info:
|
if info:
|
||||||
typeOfDevice = info.properties.get(b"type", None).decode("utf-8")
|
type_of_device = info.properties.get(b"type", None).decode("utf-8")
|
||||||
if typeOfDevice == "printer":
|
if type_of_device == "printer":
|
||||||
address = '.'.join(map(lambda n: str(n), info.address))
|
address = '.'.join(map(lambda n: str(n), info.address))
|
||||||
self.addPrinterSignal.emit(str(name), address, info.properties)
|
self.addPrinterSignal.emit(str(name), address, info.properties)
|
||||||
else:
|
else:
|
||||||
Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." %typeOfDevice )
|
Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." %type_of_device )
|
||||||
else:
|
else:
|
||||||
Logger.log("w", "Could not get information about %s" % name)
|
Logger.log("w", "Could not get information about %s" % name)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue