Menu

#19 daveGetBlockInfo doesn't work for all blocks

v1.0 (example)
open
nobody
BlockInfo (1)
5
2015-03-31
2015-03-31
No

For some blocks daveBuildAndSendPDU returns data with a DataLength of 96 (normaly the blocks have a DataLength of 82), and because of this check

                        "p2.udlen==sizeof(daveBlockInfo)"

daveGetBlockInfo Returns res==0 but without any data in the blockInfo struct. I think it's better if you check like this

                         "p2.udlen>=sizeof(daveBlockInfo)"

and copy then only sizeof(daveBlockInfo) to the blockinfo struct.

Unfortunately, I do not know what is included in the additional Bytes. In my tests the bytes are always empty (as 0x00).

Best reagds,
Benji

Discussion


Log in to post a comment.

Monday.com Logo