We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 060353c commit 12b7248Copy full SHA for 12b7248
src/madflight/hal/RP2040/RP2040_SerialIRQ.h
@@ -70,7 +70,7 @@ class SerialRingBuf {
70
size_t __not_in_flash_func(push)(uint8_t c) {
71
uint32_t next = inc(head);
72
if(next == tail) return 0; //buffer full
73
- buf[next] = c;
+ buf[head] = c;
74
head = next;
75
return 1;
76
}
0 commit comments