Zubax / kocherga

Robust platform-agnostic Cyphal/DroneCAN bootloader for deeply embedded systems
https://zubax.com
MIT License
45 stars 10 forks source link

Fix processing data from uavcan.protocol.file.Read #28

Closed DJ-Von closed 5 months ago

DJ-Von commented 5 months ago

An empty response to the uavcan.protocol.file.Read will have a size of 2 bytes (this is the size of the error field), while the DroneCAN -> Cyphal converter expects at least 4, because it mistakenly assumes that the minimum response size will be like in Cyphal, where there is no tail array optimization.