Subversion Repositories svn.mios

Rev

Rev 693 | Rev 723 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 693 Rev 721
Line 41... Line 41...
41
41
42
    protected Receiver receiver;
42
    protected Receiver receiver;
43
43
44
    protected int deviceID;
44
    protected int deviceID;
45
45
46
    protected boolean MIOS32_Mode;
46
    protected boolean mios32Mode;
47
47
48
    protected LinkedList messages;
48
    protected LinkedList messages;
49
49
50
    protected boolean done = true;
50
    protected boolean done = true;
51
51
Line 84... Line 84...
84
        setChanged();
84
        setChanged();
85
        notifyObservers(DEVICE_ID);
85
        notifyObservers(DEVICE_ID);
86
        clearChanged();
86
        clearChanged();
87
    }
87
    }
88
88
89
    public boolean getMIOS32_Mode() {
89
    public boolean isMIOS32Mode() {
90
        return this.MIOS32_Mode;
90
        return this.mios32Mode;
91
    }
91
    }
92
92
93
    public void setMIOS32_Mode(boolean enabled) {
93
    public void setMIOS32Mode(boolean enabled) {
94
        this.MIOS32_Mode = enabled;
94
        this.mios32Mode = enabled;
95
95
96
        setChanged();
96
        setChanged();
97
        notifyObservers(MIOS32_MODE);
97
        notifyObservers(MIOS32_MODE);
98
        clearChanged();
98
        clearChanged();
99
    }
99
    }
100
100
101
    public byte getMIOS_SysExId() {
101
    public byte getMIOS_SysExId() {
102
        return (byte) (MIOS32_Mode ? 0x32 : 0x40); // MIOS32/MIOS8
102
        return (byte) (mios32Mode ? 0x32 : 0x40); // MIOS32/MIOS8
103
    }
103
    }
104
104
105
    public Receiver getReceiver() {
105
    public Receiver getReceiver() {
106
        return receiver;
106
        return receiver;
107
    }
107
    }