recipe name filter
This commit is contained in:
@@ -54,7 +54,7 @@ namespace VisionBuilder.UI.IOCommander.Windows
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int pinNumber = i + 1; // Pins are 1-indexed
|
||||
int pinNumber = i; // Pins are 1-indexed
|
||||
_checkBoxes[i] = new CheckBox
|
||||
{
|
||||
Text = pinNumber.ToString(),
|
||||
@@ -78,7 +78,7 @@ namespace VisionBuilder.UI.IOCommander.Windows
|
||||
bool state = checkBox.Checked;
|
||||
|
||||
// Update the BitArray
|
||||
PinState.Set(pin - 1, state); // Adjust for 0-based indexing in BitArray
|
||||
PinState.Set(pin, state); // Adjust for 0-based indexing in BitArray
|
||||
|
||||
// Trigger the event
|
||||
OnPinChanged?.Invoke(pin, state);
|
||||
|
||||
Reference in New Issue
Block a user