Esempio n. 1
0
        private void Timer_Elapsed(object sender, ElapsedEventArgs e)
        {
            timerHasTick = true;
            timer.Stop();

            var currentStatus = status;

            if (currentStatus != null)
            {
                switch (settings?.Type)
                {
                case PresetFunction.Heading:
                    logger.LogInformation("Toggle AP HDG. Current state: {state}.", currentStatus.IsApHdgOn);
                    flightConnector.ApHdgSet((uint)currentStatus.Heading);
                    break;
                }
            }
        }
        private void Timer_Elapsed(object sender, ElapsedEventArgs e)
        {
            timerHasTick = true;
            timer.Stop();

            var currentStatus = status;

            if (currentStatus != null)
            {
                switch (action)
                {
                case "tech.flighttracker.streamdeck.heading.activate":
                    logger.LogInformation("Toggle AP HDG. Current state: {state}.", currentStatus.IsApHdgOn);
                    flightConnector.ApHdgSet((uint)currentStatus.Heading);
                    break;
                }
            }
        }