Exemple #1
0
        public void SetShutDown(string sp3ShutdownEnable, int sp3ShutdownSeconds, int batteryLevelShutdown)
        {
            try
            {
                ShutdownSeconds = Convert.ToInt32(sp3ShutdownSeconds);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
            ShutdownEnable = ConverterHelper.EnabledDisabledConverter(sp3ShutdownEnable, "sp3ShutdownEnable");

            BatteryHat.SetShutdownLevel(batteryLevelShutdown);
        }