Fixed SetDIPSwitches() bug from last check-in
This commit is contained in:
parent
c0dd42f185
commit
bf8d837ad1
1 changed files with 1 additions and 1 deletions
|
|
@ -2638,7 +2638,7 @@ ChipSet.prototype.parseDIPSwitches = function(sBits, bDefault)
|
||||||
ChipSet.prototype.setDIPSwitches = function(iType, value, fInit)
|
ChipSet.prototype.setDIPSwitches = function(iType, value, fInit)
|
||||||
{
|
{
|
||||||
var switchDIPs = ChipSet.DIPSW[this.model] || ChipSet.DIPSW[this.model|0] || ChipSet.DIPSW[ChipSet.MODEL_5150];
|
var switchDIPs = ChipSet.DIPSW[this.model] || ChipSet.DIPSW[this.model|0] || ChipSet.DIPSW[ChipSet.MODEL_5150];
|
||||||
for (var iDIP = 0; iDIP < ChipSet.DIPSW.length; iDIP++) {
|
for (var iDIP = 0; iDIP < switchDIPs.length; iDIP++) {
|
||||||
var switchTypes = switchDIPs[iDIP];
|
var switchTypes = switchDIPs[iDIP];
|
||||||
if (switchTypes) {
|
if (switchTypes) {
|
||||||
var switchGroup = switchTypes[iType];
|
var switchGroup = switchTypes[iType];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue