Skip to content

Commit 523adde

Browse files
committed
pbio/drv/bluetooth_simulation: Don't print event byte to stdout.
This was missed because it did not show in the terminal, but it would test result not match the .exp files.
1 parent 3f634b6 commit 523adde

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/pbio/drv/bluetooth/bluetooth_simulation.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,9 @@ pbio_error_t pbdrv_bluetooth_send_pybricks_value_notification(pbio_os_state_t *s
6060
return PBIO_SUCCESS;
6161
}
6262

63-
int ret = write(STDOUT_FILENO, data, size);
64-
// uint32_t ret = *size;
65-
// int r = write(STDOUT_FILENO, data, *size);
66-
// if (r >= 0) {
67-
// // in case of an error in the syscall, report no bytes written
68-
// ret = 0;
69-
// }
63+
int ret = write(STDOUT_FILENO, data + 1, size - 1);
7064
(void)ret;
71-
// return PBIO_SUCCESS;
65+
7266
PBIO_OS_ASYNC_END(PBIO_SUCCESS);
7367
}
7468

0 commit comments

Comments
 (0)