@hippy@grams This is going to sound really stupid, but...
I was just double-checking the connections when I noticed that the shifter had some rotational play on the bar. Turns out that I hadn't tightened the clamp enough and that pressing on the buttons many times had led the shifter to rotate towards the brake lever, both of which I have set quite low on the bar. The shifter had rotated just enough that pushing the button caused the mechanical click in the lever mechanism to actuate without actually triggering the electronic switch, which is apparently at the end of the lever throw, because the brake lever was in the way.
Thank you for your suggestions though. I'm very relieved it was actually nothing.
@hippy @grams This is going to sound really stupid, but...
I was just double-checking the connections when I noticed that the shifter had some rotational play on the bar. Turns out that I hadn't tightened the clamp enough and that pressing on the buttons many times had led the shifter to rotate towards the brake lever, both of which I have set quite low on the bar. The shifter had rotated just enough that pushing the button caused the mechanical click in the lever mechanism to actuate without actually triggering the electronic switch, which is apparently at the end of the lever throw, because the brake lever was in the way.
Thank you for your suggestions though. I'm very relieved it was actually nothing.