From fa357459f88bb8f0170d1a68df66e7d068d59996 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Fri, 27 Sep 2024 20:45:36 -0600 Subject: fixes --- cmd/sbc_harness/main.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'cmd/sbc_harness/main.c') diff --git a/cmd/sbc_harness/main.c b/cmd/sbc_harness/main.c index 1fd9f8c..31ce30b 100644 --- a/cmd/sbc_harness/main.c +++ b/cmd/sbc_harness/main.c @@ -4,15 +4,12 @@ * SPDX-Licence-Identifier: AGPL-3.0-or-later */ -/* newlib */ #include /* for strlen() */ - -/* pico-sdk */ #include "pico/stdlib.h" -/* local */ -#include "coroutine.h" -#include "usb_common.h" +#include +#include + #include "usb_keyboard.h" COROUTINE hello_world_cr(void *_chan) { @@ -21,7 +18,8 @@ COROUTINE hello_world_cr(void *_chan) { cr_begin(); for (size_t i = 0;; i = (i+1) % strlen(msg)) { - cr_rpc_req(chan, NULL, msg[i]); + int result; + cr_rpc_req(chan, &result, (uint32_t)msg[i]); } cr_end(); -- cgit v1.2.3-2-g168b