Skip to content

Update uartRingBufDMA.c#5

Open
glitch911 wants to merge 1 commit intocontrollerstech:masterfrom
glitch911:patch-1
Open

Update uartRingBufDMA.c#5
glitch911 wants to merge 1 commit intocontrollerstech:masterfrom
glitch911:patch-1

Conversation

@glitch911
Copy link

if (Tail==MainBuf_SIZE) Tail = 0;
Must be apply after Tail++ (or always before but all other functions are in this way except getAfter and this could cause crash if another function is called after getAfter and Tail = MainBuf_SIZE, MainBuf[MainBuf_SIZE] crashes

if (Tail==MainBuf_SIZE) Tail = 0;
Must be apply after Tail++ (or always before but all other functions are in this way except getAfter and this could cause crash if another function is called after getAfter and Tail = MainBuf_SIZE, MainBuf[MainBuf_SIZE] crashes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant