summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-04-23 21:56:27 +0200
committerThomas White <taw@physics.org>2023-04-23 21:56:27 +0200
commit065f3f58a46a174519b7df2a34dacf1981770100 (patch)
tree2805932916efaba815915de0e88e573d5eaa990b
parent87d6b0ca5adf249031b84721abb70c95b2681c0e (diff)
poll() properly, remove old debugging statement
-rw-r--r--x1k2-midi-osc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/x1k2-midi-osc.c b/x1k2-midi-osc.c
index 6ecb38c..08c43db 100644
--- a/x1k2-midi-osc.c
+++ b/x1k2-midi-osc.c
@@ -286,7 +286,7 @@ int main(int argc, char *argv[])
int r;
pfds[0].fd = lo_fd;
- pfds[0].events = POLLIN | POLLOUT;
+ pfds[0].events = POLLIN;
pfds[0].revents = 0;
/* Add MIDI fds */
@@ -317,7 +317,6 @@ int main(int argc, char *argv[])
if ( r < 0 ) {
fprintf(stderr, "MIDI read failed\n");
} else {
- printf("%li new bytes\n", r);
size_t total_proc = 0;
size_t p;
midi_buf_pos += r;