Many newlines cause TX buffer overflow #5
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: electronics/lw35-upgrade#5
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
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).
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.