</BUG>
}
@Override
public void disableNotification() {
<BUG>writeRegister(mwState, Register.SWITCH_STATE, (byte)0);
</BUG>
}
});
}
return modules.get(Module.MECHANICAL_SWITCH);

private ModuleController getMechanicalSwitchModule() {
if (!modules.containsKey(Module.MECHANICAL_SWITCH)) {
modules.put(Module.MECHANICAL_SWITCH, new MechanicalSwitch() {
@Override
public void enableNotification() {
queueRegisterAction(mwState, true, Register.SWITCH_STATE, (byte)1);
}
@Override
public void disableNotification() {
queueRegisterAction(mwState, true, Register.SWITCH_STATE, (byte)0);
}
});
}
return modules.get(Module.MECHANICAL_SWITCH);
