Skip to content

[ModbusSerialClient] On higher baudrates _silent_interval is too small to be enforced #191

@vermut

Description

@vermut

At least say if I'm right or wrong.

Code at: https://github.com/riptideio/pymodbus/blob/master/pymodbus/client/sync.py#L367

Baudrate: 57600
_silent_interval: 0.000668402777778
typical ts: 1499640168.84
typical _last_frame_end: 1499640168.83

It appears quite often ts == self._last_frame_end + self._silent_interval due to float round error. Even if it's 0.00001 smaller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions