Fix isp_serial_write() in case of non-complete write
authorCyprien Laplace <cyprien@cypou.net>
Sun, 15 Feb 2015 23:39:17 +0000 (18:39 -0500)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 14 Sep 2015 13:51:02 +0000 (15:51 +0200)
commit6fcef66c9becfbf307e1690a19e2f0170fb5cc5f
tree23d0ba554853f5ab7390b631876dda12962a75c0
parent829d39fc9567fa0bce6914b321adf8910ca707c8
Fix isp_serial_write() in case of non-complete write

On OS X, the write() to the serial port only sends 1024 bytes, and then
returns an EAGAIN error. Now we use the same wit mechanism than on read,
to send the rest of the data once port is ready.
isp_utils.c