..
This commit is contained in:
@@ -222,9 +222,9 @@ namespace Project.Dialog
|
||||
var butindex = int.Parse(but.Tag.ToString());
|
||||
Boolean current = false;
|
||||
|
||||
if (butindex == 0) current = DIO.GetIOOutput(eDOName.CART_MAG0);
|
||||
else if (butindex == 1) current = DIO.GetIOOutput(eDOName.CART_MAG1);
|
||||
else current = DIO.GetIOOutput(eDOName.CART_MAG2);
|
||||
if (butindex == 0) current = DIO.GetIOOutput(eDOName.PORTL_MAGNET);
|
||||
else if (butindex == 1) current = DIO.GetIOOutput(eDOName.PORTC_MAGNET);
|
||||
else current = DIO.GetIOOutput(eDOName.PORTR_MAGNET);
|
||||
|
||||
DIO.SetPortMagnet(butindex, !current);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user