remove useless function arg

This commit is contained in:
MaximZaitsev
2016-08-17 16:25:08 +03:00
parent 406804f146
commit 40471325b2
+2 -2
View File
@@ -21,7 +21,7 @@ class Udev {
monitor.on("remove", { device -> monitor.on("remove", { device ->
if (isOurMcDevice(device)) { if (isOurMcDevice(device)) {
disconnectDevice(device) disconnectDevice()
} }
}) })
@@ -33,7 +33,7 @@ class Udev {
return device.ID_VENDOR_ID == microController.vendorID && device.ID_MODEL_ID == microController.modelID && device.SUBSYSTEM == "tty" return device.ID_VENDOR_ID == microController.vendorID && device.ID_MODEL_ID == microController.modelID && device.SUBSYSTEM == "tty"
} }
fun disconnectDevice(device: dynamic) { fun disconnectDevice() {
println("mc disconnected") println("mc disconnected")
MicroController.instance.transportFilePath = "" MicroController.instance.transportFilePath = ""
mcTransport.closeStreams() mcTransport.closeStreams()