Fix EV3 sensor mode count decoding
It turns out that the underlying problem was that the sensor sends the number of modes minus one and the code here did not account for it.
It turns out that the underlying problem was that the sensor sends the number of modes minus one and the code here did not account for it.