protected async void McuEnterInstallation() { var d = new InstallationMode(true); QueueData(d); await d.WaitAsync(); UnitId = d.UnitId; if (d.ModuleDataCheckOk) { _mcucomm.Fire(Cevts.InstallOk); } else { _mcucomm.Fire(Cevts.Error, "Install not OK"); } }
private async void McuDisconnect() { var z = new InstallationMode(false); QueueData(z); await z.WaitAsync(); _mcucomm.Fire(Cevts.DisconnectOk); UnitId = -1; }