mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 10:45:54 +08:00
Removed debug prints
CURA-49
This commit is contained in:
parent
ca502705c2
commit
69a9ef4a64
@ -31,7 +31,6 @@ class WifiOutputDevicePlugin(OutputDevicePlugin, SignalEmitter):
|
|||||||
connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
|
connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
|
||||||
|
|
||||||
def _onPrinterConnectionStateChanged(self, address):
|
def _onPrinterConnectionStateChanged(self, address):
|
||||||
print("_onPrinterConnectionStateChanged" , self._connections[address].isConnected())
|
|
||||||
if self._connections[address].isConnected():
|
if self._connections[address].isConnected():
|
||||||
self.getOutputDeviceManager().addOutputDevice(self._connections[address])
|
self.getOutputDeviceManager().addOutputDevice(self._connections[address])
|
||||||
else:
|
else:
|
||||||
@ -51,4 +50,3 @@ class WifiOutputDevicePlugin(OutputDevicePlugin, SignalEmitter):
|
|||||||
elif state_change == ServiceStateChange.Removed:
|
elif state_change == ServiceStateChange.Removed:
|
||||||
info = zeroconf.get_service_info(service_type, name)
|
info = zeroconf.get_service_info(service_type, name)
|
||||||
address = '.'.join(map(lambda n: str(n), info.address))
|
address = '.'.join(map(lambda n: str(n), info.address))
|
||||||
print("Device disconnected: ", address)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user