From a8314e494fd72279cac235a471fa531dc7f8cd66 Mon Sep 17 00:00:00 2001 From: Michael Oborne Date: Tue, 17 Apr 2018 21:38:11 +0800 Subject: [PATCH] MainV2: fix speech --- Common.cs | 3 +-- MainV2.cs | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Common.cs b/Common.cs index 674183245a..69d47dfb99 100644 --- a/Common.cs +++ b/Common.cs @@ -10,9 +10,8 @@ namespace MissionPlanner { - class Common + public class Common { - public static Form LoadingBox(string title, string promptText) { Form form = new Form(); diff --git a/MainV2.cs b/MainV2.cs index 9c9dbed916..63fc165ae8 100644 --- a/MainV2.cs +++ b/MainV2.cs @@ -610,8 +610,6 @@ public MainV2() var t = Type.GetType("Mono.Runtime"); MONO = (t != null); - speechEngine = new Speech(); - Warnings.CustomWarning.defaultsrc = comPort.MAV.cs; Warnings.WarningEngine.Start(); @@ -3171,7 +3169,7 @@ private void BGFirmwareCheck(object state) var fw = new Firmware(); var list = fw.getFWList(); if (list.Count > 1) - Firmware.SaveSoftwares(list); + Firmware.SaveSoftwares(new Firmware.optionsObject() { softwares = list }); Settings.Instance["fw_check"] = DateTime.Now.ToShortDateString(); }