HD44780 update:

- Fixed build bug (winamp was not included)
- Reporting fix.
This commit is contained in:
robijn
2002-05-20 21:08:37 +00:00
parent 7c49cb535c
commit d3cf1569eb
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ dnl else
;; ;;
hd44780) hd44780)
if test "$ac_cv_port_have_lpt" = yes ; then if test "$ac_cv_port_have_lpt" = yes ; then
HD44780_DRIVERS="hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-serialLpt.o hd44780-picanlcd.o" HD44780_DRIVERS="hd44780-4bit.o hd44780-ext8bit.o lcd_sem.o hd44780-winamp.o hd44780-serialLpt.o hd44780-picanlcd.o"
else else
HD44780_DRIVERS="hd44780-picanlcd.o" HD44780_DRIVERS="hd44780-picanlcd.o"
fi fi
+5 -5
View File
@@ -258,9 +258,9 @@ HD44780_init (Driver * drvthis, char *args)
// Was a key specified in the config file ? // Was a key specified in the config file ?
if( s ) { if( s ) {
p->keyMapDirect[x] = (char *) malloc( strlen(s)+1 ); p->keyMapDirect[x] = strdup( s );
strcpy( p->keyMapDirect[x], s ); strcpy( p->keyMapDirect[x], s );
//report( RPT_INFO, "HD44780: Direct key %d: \"%s\"", x, s ); report( RPT_INFO, "HD44780: Direct key %d: \"%s\"", x, s );
} }
} }
@@ -277,9 +277,9 @@ HD44780_init (Driver * drvthis, char *args)
// Was a key specified in the config file ? // Was a key specified in the config file ?
if( s ) { if( s ) {
p->keyMapMatrix[y][x] = (char *) malloc( strlen(s)+1 ); p->keyMapMatrix[y][x] = strdup( s );
strcpy( p->keyMapMatrix[y][x], s ); strcpy( p->keyMapMatrix[y][x], s );
//report( RPT_INFO, "HD44780: Matrix key %d %d: \"%s\"", x, y, s ); report( RPT_INFO, "HD44780: Matrix key %d %d: \"%s\"", x, y, s );
} }
} }
} }
@@ -1066,7 +1066,7 @@ HD44780_get_key(Driver *drvthis)
// It's a new keypress // It's a new keypress
p->pressed_key_time = curr_time; p->pressed_key_time = curr_time;
p->pressed_key_repetitions = 0; p->pressed_key_repetitions = 0;
printf( "Key: %s (%d,%d)\n", keystr, scancode&0x0F, (scancode&0xF0)>>4 ); report( RPT_INFO, "HD44780_get_key: Key pressed: %s (%d,%d)\n", keystr, scancode&0x0F, (scancode&0xF0)>>4 );
} }
} }