From 828963b5868c509fd996d64805ccca7fbc510be5 Mon Sep 17 00:00:00 2001 From: d00f <8052722+DrDoof@users.noreply.github.com> Date: Tue, 1 Sep 2026 04:11:30 +0200 Subject: [PATCH] cmd: let "isolate off" put the top port back in the member list The member mask is filled with a loop that stops one short, so the highest front panel port never gets its bit and stays isolated from the port that was just opened up. Every other loop over the port range in the tree treats machine.max_port as the last port rather than the one past it. --- cmd_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd_parser.c b/cmd_parser.c index 66b05bd..e86c1e9 100644 --- a/cmd_parser.c +++ b/cmd_parser.c @@ -573,7 +573,7 @@ void parse_isolate(void) } if (cmd_compare(2, "off")) { - for (uint8_t i = machine.min_port; i < machine.max_port; i++) + for (uint8_t i = machine.min_port; i <= machine.max_port; i++) members |= ((uint16_t)1) << i; members |= 0x200; // CPU-port port_isolate(port_configured, members);