public GUIManualSwitch(ViewModelModifiable model, String name)
{
super(model, name);
- logicObs = (i) -> requestRedraw();
+ logicObs = (i) -> model.requestRedraw();
setSize(width, height);
addPin(this.outputPin = new Pin(this, "", 1, width, height / 2));