diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-29 16:02:43 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-29 16:02:43 +1100 |
commit | 22e2f4a0e896b185517186e5873d765fcd643351 (patch) | |
tree | 7093f85286499ccb29ac0f0bccce1e12cacfb6c0 /py/objclosure.c | |
parent | 3a77342719bf056cdc51dc898745909b513f0c77 (diff) | |
download | micropython-22e2f4a0e896b185517186e5873d765fcd643351.tar.gz micropython-22e2f4a0e896b185517186e5873d765fcd643351.zip |
stmhal/spi: Increase SPI transfer timeout, proportional to num bytes.
With the existing timeout of 100ms the transfer would end prematurely if
the baudrate was low and the number of bytes to send was high. This patch
fixes the problem by making the timeout proportional to the number of bytes
that are being transferred.
Diffstat (limited to 'py/objclosure.c')
0 files changed, 0 insertions, 0 deletions