Skip to content

fix: enable 7-bit data configuration for serial port#49

Open
maovidal wants to merge 1 commit into
WCHSoftGroup:mainfrom
vidalastudillo:main
Open

fix: enable 7-bit data configuration for serial port#49
maovidal wants to merge 1 commit into
WCHSoftGroup:mainfrom
vidalastudillo:main

Conversation

@maovidal

Copy link
Copy Markdown

Added a workaround to allow 7-bit data configurations, which the current driver blocks.

  • Tested: Works with Modbus ASCII (7E1) on a Waveshare CH9344.
  • Not tested: I haven't verified if this patch breaks the driver's original standard configuration.

Submitting this as a proof of concept since I'm an end-user and haven't received a working fix from Waveshare. Please review and test against the default config if you plan to implement an official fix.

Bypasses the parameter restriction block to support 7-bit configurations.
Tested working: Modbus ASCII (7E1).
Needs verification: Impact on default 8-bit configurations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant