Fix Read Fifo Query RTU Frame Size#2898
Conversation
janiversen
left a comment
There was a problem hiding this comment.
LGTM, thanks.
Please correct the test harness as we cannot merge a PR without a greenwich CI.
|
pymodbus/test/pdu/test_file_message.py Line 23 in 54d35b4 pymodbus/test/pdu/test_file_message.py Lines 47 to 65 in 54d35b4 Can someone explain to me what input calculateRtuFrameSize should actually have? Edit: |
Quick dirty test to fix test_frame_size
|
I am confused about your question, check the code: pymodbus/framer/rtu.py line 98. why would you assume then encode generates what decode wants..it is used in 2 very different situations...but again just look at the code. |
|
Just saw that the test file have a copy/paste error...all the references to bit/coil/discrete input should clearly have been to file... This includes the class name. Feel free to submit a follow up PR if you want to. |
Found a small calculation error in the Read FIFO Query function.
This should fix it, unless a test fails again.