mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-09-02 15:02:51 +08:00
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.
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user