Traction Control + Rotary Switch 1

Started to set up some of the traction control and rev matching on V3.
Traction control is normally controlled by Analog input 6 which is assigned to rotary switch one and correctly calibrated and moves through the positions correctly.
However when assigning rotary switch 1 as the scale for traction control the actual TC adjust position never changes from 1. TC state remains inactive switch off at any position.

Screen shot below.

However if you change the Disable pot position to another number you can cycle through the positions 1/2/3 until you hit the disabled number then the TC adjust pos remains in the same state but the rotary switch position continues to change.

Final screenshot with the engine running just to ensure it wasn’t being disabled by RPM.
Changed the disable position to 5 part way through the log as you can see it counts to 5 then doesnt change after that.

There is a bug in state machine.
For now set the Disable adj pot pos to 9, and create function that will Activate TC when the Rotary switch pos will be different than 0