AgGateway.ADAPT.ISOv4Plugin.ImportMappers.LogMappers.CondensedStateMeterCreator.GetNumberOfInstalledSections C# (CSharp) Method

GetNumberOfInstalledSections() private method

private GetNumberOfInstalledSections ( SpatialValue spatialValue ) : int
spatialValue SpatialValue
return int
        private int GetNumberOfInstalledSections(SpatialValue spatialValue)
        {
            var value = (uint)spatialValue.Value;
            const uint notInstalledValue = 0x03;

            for (int i = 1; i < 17; i++)
            {
                if (GetSectionValue(value, i) == notInstalledValue)
                    return i - 1;
            }

            return 16;
        }