secsgem icon indicating copy to clipboard operation
secsgem copied to clipboard

handle secsi multi-block error

Open auosun opened this issue 9 months ago • 1 comments

When the secsi message is too long and is split into two blocks, the length of the data in the first block is 244,then image When the message is passed in, the header processing sets 'last_block' to false. However, after going through the method shown in the diagram, 'last_block' is overwritten as True, causing incorrect handling of splitting.

I have removed the red portion shown in the diagram in the SecsIMessage class to fix this issue. I'm not sure if it's correct, and I'm unsure if there are any other problems."

auosun avatar May 22 '24 06:05 auosun