initial commit

This commit is contained in:
2026-06-25 12:19:29 +03:00
commit 1160477945
19 changed files with 898 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using RTCSync.Services;
using RTCSync.Utils;
namespace RTCSync.Options;
public class ReadStatusOption : IOption
{
public string Description =>
"Чтение регистров status, control и температуры с часов реального времени.";
public List<string> OptionNames => ["-i", "--read-status"];
public string OptionValues => "";
public void Execute(OptionArgs args)
{
// bind and init CH431
var device = DeviceDispatcher.SetUpDevice();
if (device == null)
return;
DeviceReaders.PrintControlValues(device);
DeviceReaders.PrintStatusValues(device);
DeviceReaders.PrintTemperatureValue(device);
}
}