lib/ev3dev/lego_port: force analog w/ AnalogSensor
If this class is used, disable auto-detect and make sure to always set the port to analog mode. This way, even sensors with analog status like the NXT Light sensor can still be used with the AnalogSensor class.
@@ -138,7 +138,7 @@ pbio_error_t ev3dev_lego_port_configure(pbio_port_t port, pbio_iodev_type_id_t i
// If special modes have been set previously and they're still good, we're done.
if ((id == PBIO_IODEV_TYPE_ID_NXT_COLOR_SENSOR && mode_now == RAW ) ||
- (id == PBIO_IODEV_TYPE_ID_NXT_ANALOG && status_now == NXT_ANALOG) ||
+ (id == PBIO_IODEV_TYPE_ID_NXT_ANALOG && mode_now == NXT_ANALOG) ||
(id == PBIO_IODEV_TYPE_ID_NXT_TOUCH_SENSOR && status_now == NXT_ANALOG) ||
(id == PBIO_IODEV_TYPE_ID_CUSTOM_I2C && mode_now == OTHER_I2C ) ||
(id == PBIO_IODEV_TYPE_ID_CUSTOM_UART && mode_now == OTHER_UART) ||
