disable voice

This commit is contained in:
2026-03-26 23:47:58 +02:00
parent 78e2483e7f
commit 27817754ce
7 changed files with 44 additions and 24 deletions

View File

@@ -1,11 +1,10 @@
using Avalonia.Controls;
using VisionAsist.SDK;
using System.IO.Ports;
namespace ModuleWeather;
public class WeatherModule : IModule
{
public SerialPort myPort = new ();
public static string port;
public WeatherModule()
{
@@ -38,11 +37,7 @@ public class WeatherModule : IModule
public object Execute(string command)
{
myPort.Close();
myPort = new SerialPort(port, 9600);
myPort.Open();
@@ -51,15 +46,6 @@ public class WeatherModule : IModule
case "погода":
return "Погода хорошая!";
case "поверни на *":
myPort.WriteLine("178");
return "Повернул на 180";
case "верни *":
myPort.WriteLine("0");
return "Вернул в 0";
default:
return "Команда не найдена";
}