commit | 62574aa5c0bf0df43a2ed0182562f17f30825f0d | [log] [tgz] |
---|---|---|
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Fri Nov 30 16:46:41 2012 +0000 |
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Fri Nov 30 16:46:41 2012 +0000 |
tree | 788120efb7d40c50991b226181d1b1896adf07cb | |
parent | 26148ae3a881a2323ef130427ee8749a2ab53c9e [diff] |
Break endless loop in serialport_write() Serialport_write could loop endlessly when used with a seemingly valid port that does always return 0 on writes instead of an error. Give up after about 125 ms i.e. 250 tries with a period of 500 us. Corresponding to flashrom svn r1626. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Idwer Vollering <vidwer@gmail.com>