Permalink
Browse files

reverting atempted bug fix as caused other things to fail

awaiting feedback from anyone seen this seg fault before attempting
blind fix
  • Loading branch information...
1 parent 0312c36 commit 6a296779c1d5a6b8fed8c6e4f40639ac3ec82e12 chris committed Sep 24, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +2 −2 src/input.c
View
@@ -4,9 +4,9 @@
# rpi - uses xwindows to provide event handling
# rpi_noX - get keyboard events from raw input, xwindows not needed
-#PLATFORM=xorg
+PLATFORM=xorg
#PLATFORM=rpi
-PLATFORM=rpi_noX
+#PLATFORM=rpi_noX
####
View
@@ -246,7 +246,7 @@ bool *getKeys()
int n;
n = scandir ("/dev/input/by-path/", &eps, __dfilter, __dsort);
- if (n > 0)
+ if (n >= 0)
{
// only check 1st usb keyboard....
char fn[256];
@@ -276,7 +276,7 @@ bool *getKeys()
if (ioctl(__key_fd, KDGKBMODE, &old_keyboard_mode) < 0) {
//return 0;
printf("couldn't get the keyboard, are you running via ssh\n");
- printf("without setting evdev permissions? \n");
+ printf("or without setting evdev permissions? \n");
}
tcgetattr(__key_fd, &tty_attr_old);

0 comments on commit 6a29677

Please sign in to comment.