diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-01 02:08:18 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-04-01 02:08:18 -0700 |
commit | b34370cea662eb245e43aca20a6650b84b55ef6f (patch) | |
tree | 7066f6a98b4e9a81549c04605c31cc52cd4854a1 /altoslib/AltosLib.java | |
parent | b3a41bed39ec1abfc3ab74e9be7dd393e975542b (diff) |
altos: Retry SD card I/O. Use time for timeouts instead of counts
Sometimes I/O operations may fail; give the card a chance and retry
the operation in case it works the next time.
Replace the loop counts with loops that check the clock so that
they'll have consistent timeouts even if the CPU or SPI speed changes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLib.java')
0 files changed, 0 insertions, 0 deletions