Add optional delay between each transmitted byte
authorTormod Volden <debian.tormod@gmail.com>
Sat, 17 Aug 2013 14:59:48 +0000 (16:59 +0200)
committerTormod Volden <debian.tormod@gmail.com>
Tue, 20 Aug 2013 22:10:05 +0000 (00:10 +0200)
commit5ae5df350cc048efef06debca086cebb644c8b11
tree6b6813242e7bd01422032725c3e0af7314db569f
parent8a58fee844f2ff868b7bca8af2d07d3ce2edae06
Add optional delay between each transmitted byte

The bit-banger seems to be too slow to read a byte
immediately following another at 57600 baud.

Today's fast computers can also be a factor, since the
server code might have incurred some "natural" delay in
the old days.

The previous setting of non-buffered I/O is a prerequisite
for this code delay to make a difference.

A value of 500 (microseconds) works fine on a Dragon 32
using its DLOAD command patched with DriveWire serial
drivers at 57600 baud.

This brings the effective transfer rate down quite a bit from
what 57600 baud could theoretically allow, but it is still around
2KB/s.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
README
dload.c