SympatheticHardwareControl.Controller.updateStateRecord C# (CSharp) Method

updateStateRecord() private method

private updateStateRecord ( hardwareState changes ) : void
changes hardwareState
return void
        private void updateStateRecord(hardwareState changes)
        {
            foreach (KeyValuePair<string, double> pairs in changes.analogs)
            {
                stateRecord.analogs[pairs.Key] = changes.analogs[pairs.Key];
            }
            foreach (KeyValuePair<string, bool> pairs in changes.digitals)
            {
                stateRecord.digitals[pairs.Key] = changes.digitals[pairs.Key];
            }
        }