33 lines
728 B
C#
33 lines
728 B
C#
using Akari.Provider.WaveshareUART.Views;
|
|
using System;
|
|
using Terminal.Gui;
|
|
|
|
namespace Akari.Provider.WaveshareUART
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
if (args.Length > 0)
|
|
{
|
|
switch (args[0])
|
|
{
|
|
case "-c":
|
|
case "--config":
|
|
StartConfig();
|
|
|
|
Environment.Exit(0);
|
|
break;
|
|
}
|
|
}
|
|
|
|
WaveshareUARTProvider.Instance.FingerprintLoop();
|
|
}
|
|
|
|
private static void StartConfig()
|
|
{
|
|
Application.Run<TUIManager>();
|
|
}
|
|
}
|
|
}
|