Skip to content

Commit

Permalink
vtime = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tehn committed Dec 23, 2021
1 parent bcce32e commit c12dd03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/torture.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
#include <monome.h>

#define MONOME_OSC "osc.udp://127.0.0.1:8080/monome"
#define MONOME_SERIAL "/dev/ttyUSB0"
#define MONOME_SERIAL "/dev/ttyACM0"

#define WIDTH 16
#define HEIGHT 16
#define HEIGHT 8

void random_chill() {
struct timespec rem, req;
Expand All @@ -47,7 +47,7 @@ int main(int argc, char **argv) {
unsigned int w, h, y, s;
uint16_t buf;

if( !(monome = monome_open(MONOME_OSC, "8000")) ) {
if( !(monome = monome_open(MONOME_SERIAL, "8000")) ) {
fprintf(stderr, "couldn't open monome\n");
exit(EXIT_FAILURE);
}
Expand Down
2 changes: 1 addition & 1 deletion src/platform/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int monome_platform_open(monome_t *monome, const monome_devmap_t *m,
OFILL | OPOST);

nt.c_cc[VMIN] = 0;
nt.c_cc[VTIME] = 1;
nt.c_cc[VTIME] = 0;

if( tcsetattr(fd, TCSANOW, &nt) < 0 )
goto err_tcsetattr;
Expand Down

0 comments on commit c12dd03

Please sign in to comment.