Skip to content

Commit 12b7248

Browse files
committed
Update RP2040_SerialIRQ.h
1 parent 060353c commit 12b7248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/madflight/hal/RP2040/RP2040_SerialIRQ.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SerialRingBuf {
7070
size_t __not_in_flash_func(push)(uint8_t c) {
7171
uint32_t next = inc(head);
7272
if(next == tail) return 0; //buffer full
73-
buf[next] = c;
73+
buf[head] = c;
7474
head = next;
7575
return 1;
7676
}

0 commit comments

Comments
 (0)