Many newlines cause TX buffer overflow #5

Open
opened 2020-05-22 16:03:14 +02:00 by markus · 1 comment

Many successive newlines in the buffer are processed "instantly," each leading to a Status TX, which is processed "whenever," which in turn quickly leads to a TX buffer overflow (Hardfault reason 2).

Many successive newlines in the buffer are processed "instantly," each leading to a Status TX, which is processed "whenever," which in turn quickly leads to a TX buffer overflow (Hardfault reason 2).
Poster
Owner

Fix: Change tx_buffer_process() so that, instead of only TXing one character, it ensures that there's at least enough space in the buffer left for ~3 telegrams or so.

Fix: Change `tx_buffer_process()` so that, instead of only TXing one character, it ensures that there's at least enough space in the buffer left for ~3 telegrams or so.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: electronics/lw35-upgrade#5
There is no content yet.