We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e0d9a commit 65703c3Copy full SHA for 65703c3
1 file changed
lib/pbio/include/pbsys/host.h
@@ -49,8 +49,8 @@ pbio_error_t pbsys_host_send_event(pbio_os_state_t *state, pbio_pybricks_event_t
49
#define pbsys_host_stdin_set_callback(callback) { (void)(callback); }
50
#define pbsys_host_stdin_flush()
51
#define pbsys_host_stdin_get_available() 0
52
-#define pbsys_host_stdin_read(data, size) PBIO_ERROR_NOT_SUPPORTED
53
-#define pbsys_host_stdout_write(data, size) { (void)(data); (void)(size); PBIO_ERROR_NOT_SUPPORTED; }
+#define pbsys_host_stdin_read(data, size) ({ *(data) = 0; *(size) = 0; PBIO_ERROR_NOT_SUPPORTED; })
+#define pbsys_host_stdout_write(data, size) ({ *(size) = 0; PBIO_ERROR_NOT_SUPPORTED; })
54
#define pbsys_host_tx_is_idle() false
55
56
static inline pbio_error_t pbsys_host_send_event(pbio_os_state_t *state, pbio_pybricks_event_t event_type, const uint8_t *data, size_t size) {
0 commit comments