1

Resolved

Erroneous scale in NativeAnalogOutput implementation

description

In the Gadgeteer 4.3 implementation of NativeAnalogOutput, the AnalogOutput scale parameter is incorrectly initialized with precisionInBits value.

Thus, the following line:
_port = new Hardware.AnalogOutput(_channel, _socket.AnalogOutputPrecisionInBits, _socket.AnalogOutputOffset, _socket.AnalogOutputPrecisionInBits);
must be replaced by:
_port = new Hardware.AnalogOutput(_channel, _socket.AnalogOutputScale, _socket.AnalogOutputOffset, _socket.AnalogOutputPrecisionInBits);

comments