Skip to content

Commit

Permalink
Fix TivaSPI bug. The FIFO depth is just 8. (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz authored Sep 11, 2021
1 parent 20548a5 commit 450b2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freertos_drivers/ti/TivaSPI.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private:
do
{
/* fill TX FIFO but make sure we don't fill it to overflow */
if (tx_len && ((rx_len - tx_len) < (32 / sizeof(T))))
if (tx_len && ((rx_len - tx_len) < 8))
{
if (data_put_non_blocking(*tx_buf) != 0)
{
Expand Down

0 comments on commit 450b2eb

Please sign in to comment.