properly mark when we are disconnected

This commit is contained in:
geeksville 2020-06-14 16:43:36 -07:00
parent e94c059acb
commit 7cca69be0d
3 changed files with 17 additions and 4 deletions

View file

@ -161,7 +161,7 @@ class SerialInterface(private val service: RadioInterfaceService, val address: S
io.writeAsync(wakeBytes)
// Now tell clients they can (finally use the api)
service.broadcastConnectionChanged(true, isPermanent = false)
service.onConnect()
}
} else {
errormsg("Can't find device")