diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-05-30 15:56:12 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-05-30 16:34:49 -0400 |
commit | 8e58f8fb39f275a23c6209cc856e3464b188fdf5 (patch) | |
tree | 323a3080e56dee452bdd133cc580c99726210cb1 /src/stepper.c | |
parent | f4130aa9487bed4210eedc01af4b9c88141a5771 (diff) | |
download | kutter-8e58f8fb39f275a23c6209cc856e3464b188fdf5.tar.gz kutter-8e58f8fb39f275a23c6209cc856e3464b188fdf5.tar.xz kutter-8e58f8fb39f275a23c6209cc856e3464b188fdf5.zip |
rp2040: Fix spi overflow issue
Completely filling the spi transmit fifo could lead to a situation
where the rx fifo overflows. Make sure not to write past the rx fifo
size.
Also, be sure to wait for the transmission to fully complete before
exiting spi_transfer().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stepper.c')
0 files changed, 0 insertions, 0 deletions