Skip to content

Commit 1204632

Browse files
Fixed unit port build issue
1 parent da58c02 commit 1204632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/unix/coverage.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ STATIC mp_obj_t extra_coverage(void) {
527527
// ringbuf
528528
{
529529
byte buf[100];
530-
ringbuf_t ringbuf = {buf, sizeof(buf), 0, 0};
530+
ringbuf_t ringbuf;
531+
ringbuf_init(&ringbuf, &buf[0], sizeof(buf));
531532

532533
mp_printf(&mp_plat_print, "# ringbuf\n");
533534

0 commit comments

Comments
 (0)