1.1 diff -r 3e775df109e6 -r 071056e12321 src/liblpfk.c 1.2 --- a/src/liblpfk.c Tue Aug 26 13:18:18 2008 +0100 1.3 +++ b/src/liblpfk.c Tue Aug 26 18:45:10 2008 +0100 1.4 @@ -57,7 +57,7 @@ 1.5 #include "liblpfk.h" 1.6 1.7 /* lpfk_open {{{ */ 1.8 -int lpfk_open(const char *port, LPFK_CTX *ctx) 1.9 +int lpfk_open(LPFK_CTX *ctx, const char *port) 1.10 { 1.11 struct termios newtio; 1.12 int status; 1.13 @@ -148,9 +148,8 @@ 1.14 ctx->led_mask = 0; 1.15 ctx->fd = fd; 1.16 1.17 - // Enable the LPFK 1.18 - write(fd, "\x08", 1); 1.19 - ctx->enabled = true; 1.20 + // Disable LPFK keyboard scanning 1.21 + lpfk_enable(ctx, false); 1.22 1.23 // Return OK status 1.24 return LPFK_E_OK;