Need Help with mapping a Bypass toggle

I’m trying to figure out how to get bypass for a pipeline to toggle off/on using an external controller.

I have:

Morningstar MC6 PRO
Blokas Minihub
Korg Opsix (MIDI ch 1)
Korg Minilogue XD (MIDI ch 2)

Physically I have them wired this way*

MC6.Midi Out -> MidiHub.Midi In A
Opsix.Midi Out -> MidiHub.Midi In B

MidiHub.Midi Out A -> Opsix.Midi In
MidiHub.Midi Out B -> MLXD.Midi In

I set up a pipeline to remap channel messages coming over MidiHub.Midi In B (basically I’m trying to use the Opsix as a controller for the Minilogue without changing channels). The pipeline works by itself. It correctly maps notes to MIDI channel 2 and when I click bypass in the Minihub editor, the notes stop getting mapped to midi channel 2.

My problem is trying to set up a bypass toggle using the morningstar editor.

I have

FROM B 
-> CH FILTER (allow ch 1 only)
-> CH REMAP (
    In Low       1,
    In High     16, 
    Out Low      2, 
    Out High     2) 
-> TO B

And then FROM B i created a mapping by having the Midihub listen as I pressed the button sending the message I want to send to the Midihub to trigger the bypass.

It recorded this, and this is what I see when I monitor messages on MidiHub’s Input A:

Ch. 16 CC 20 127

In the mapping dialog for the bypass for the FROM B start of the above pipeline, I have

Port: MIDI A        Mode: Toggle
Type:CC             Low: 0
Channel: 16         High: 127
Id: 20              Drop: [ ] (unchecked)

When I press the button on the MC6, the bypass get checked. When I press it again it does not get unchecked.

I have other pipelines set up on this (basically all messages from MIDI IN A go to MIDI OUT A and B so I can use the MC6 to send messages to the Opsix and Minilogue) those pipelines are working fine. I don’t have any bypass toggling set up on those.

It seems like there must be some small detail I’m missing, but I’m not sure what.

What CC values does the MC6 send? The Toggle mode requires the CC value to go < 64 and and >= 64 again to get triggered. If your MC6 button is toggling between 0 and 127 values, then it already works in toggle mode and you should use Scale MIDI mapping mode instead in Midihub Editor.