Skip to content

Commit

Permalink
Use \000 as keep-alive instead of \377, pronterface can't handle the …
Browse files Browse the repository at this point in the history
…latter.
  • Loading branch information
modmaker committed Jun 30, 2012
1 parent 6eb800d commit 1bb14b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static void* comm_thread( void* arg)
// timeout, send dummy character to keep connection alive
static int prescaler = 0;
if (++prescaler > keep_alive_timeout / timeout) {
printf( "%c", 255);
printf( "%c", 0);
if (DEBUG_COMM && (debug_flags & DEBUG_COMM)) {
fprintf( stderr, "<KEEP ALIVE SENT>");
}
Expand Down Expand Up @@ -234,7 +234,7 @@ int comm_init( void)
return -1;
}
if (DEBUG_COMM && (debug_flags & DEBUG_COMM)) {
fprintf( stderr, "input pipe created: output/read side fd = %d, input/write side fd = %d\n", fds[ 0], fds[ 1]);
fprintf( stderr, "input pipe: output/read side fd = %d, input/write side fd = %d\n", fds[ 0], fds[ 1]);
}
alt_stdin = fds[ 1];

Expand Down

0 comments on commit 1bb14b8

Please sign in to comment.