-
Notifications
You must be signed in to change notification settings - Fork 986
convert_from_registers wrong transformation #2623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sounds like a bug, but why do you want to convert bits ??? when you use e.g. read_coils it is already unpacked. Pull requests are welcome. A single register show the same problem (from dev):
|
Bug confirmed:
This is really a very very old bug (since v1.something). Good catch. |
#2627 solves the problem. Thanks for catching it, it was really a deeply buried bug and most likely affect a number of apps using pymodbus. Extensive testing have been added to ensure it does not happen again. It will be release soon as v3.9.0 |
print(client.convert_from_registers(registers=[0,8194], data_type=client.DATATYPE.BITS, word_order="big"))
whilst it should give
Is this a bug?
The text was updated successfully, but these errors were encountered: