Linux OSes has problems with some variants of the radios supported by this driver, Michael Wagner OE4AMW, discovered that delaying the writes fixes the bug.

Further investigation revealed that for this radios the OEM software do delay the writes and even restart the download when the fault condition arose.

This patch fixes a bunch of open issues about synthoms of this bug, I will link them in the CMS to get them closed.

Michel proposed this patch that has proved to fix this bug (and retry when the bug is detected), so this patch is in his name (with some cosmetics from my side)

Look in the issue thread for more details

Thanks to Michael Wagner OE4AMW.