Hi Phil (I suppose you’ll pick this up),
Flotilla Dock talking to a terminal with, for example, a light module connected. Light data gets sent as it changes as expected.
Swap the light module with, for example, a touch module on the same dock port.
Press a touch pad and it will send 1 for the touched pad, but it’ll also probably return ‘random’ values for the 2nd and 3rd pads.
Possible hint: the light module sends 3 values. If you swap in a weather module, which sends 2 large values, and then replace it with a touch, it’ll probably splatter all the pad values when you swap in a touch module and press a pad.
Press each touch pad in turn and they will then cure themselves back to sending only 1 or 0 for touched or not.
I guess you’re not clearing out the module data in the dock properly when a module is swapped for another on the same connector. Although you obviously detect and report the swap correctly with a disconnect and connect.
I had planned on ‘Hot Swappable’ functionality for my project (no, it’s not some kinky spin off of Kim Possible!)
I’m again not sure if this is a real world issue. But I think I will have to be careful what values I’m treating as a touch after a module swap. Look explicitly for 0 and 1?
Sorry for finding weird problems with flotilla, but I secretly enjoy messing about and it’s sort of my day job too. Unfortunately, I don’t seem to be able to take off my quality manager hat when I get home!