minimalmodbus icon indicating copy to clipboard operation
minimalmodbus copied to clipboard

Parity configuration in documentation is wrong

Open HWHardsoft opened this issue 1 year ago • 1 comments

Hi,

in the documentation parity configuration is decribed so:

instrument.serial.parity = serial.PARITY_NONE

This is not working! The right way:

instrument.serial.parity = 'N'

Please change the documentation.

Thx

HWHardsoft avatar Feb 12 '24 12:02 HWHardsoft

Did you forget to import serial?

serial.PARITY_NONE is 'N', see https://github.com/pyserial/pyserial/blob/master/serial/serialutil.py#L79

j123b567 avatar Feb 12 '24 14:02 j123b567