daveGetBlockInfo doesn't work for all blocks
Status: Beta
Brought to you by:
lettoz
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