Subversion Repositories group.electronics

Rev

Rev 158 | Rev 172 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 158 Rev 171
Line 155... Line 155...
155
                    _state = DCSBiosStateEnum.DATA_HIGH;
155
                    _state = DCSBiosStateEnum.DATA_HIGH;
156
                    break;
156
                    break;
157
                case DCSBiosStateEnum.DATA_HIGH:
157
                case DCSBiosStateEnum.DATA_HIGH:
158
                    _data = (uint)(b << 8) | _data;
158
                    _data = (uint)(b << 8) | _data;
159
                    _count--;
159
                    _count--;
-
 
160
 
160
                    if (_address == 0x10fa) {
161
                    //if (_address == 0x10fa) {
161
                        uint aapCdupwrValue = (_data & 0x4000) >> 14;
162
                    //    uint aapCdupwrValue = (_data & 0x4000) >> 14;
162
                        //Console.WriteLine(_address.ToString("X") + ":" + aapCdupwrValue);
163
                    //    Console.WriteLine(_address.ToString("X") + ":" + aapCdupwrValue);
-
 
164
                    //}
-
 
165
                    Led led;
-
 
166
                    if (Globals.outputs.TryGetValue((UInt16)_address, out led)) {
-
 
167
                        led.Tick(_data);
163
                    }
168
                    }
164
                        
169
                        
165
                    _address += 2;
170
                    _address += 2;
166
                    if (_count == 0)
171
                    if (_count == 0)
167
                        _state = DCSBiosStateEnum.ADDRESS_LOW;
172
                        _state = DCSBiosStateEnum.ADDRESS_LOW;