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
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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.