Modified for compatibility with FreeBSD tv struct.
This commit is contained in:
@@ -52,6 +52,7 @@ static unsigned char heartbeatCharacter;
|
|||||||
static fd_set fdset;
|
static fd_set fdset;
|
||||||
static int width = 0;
|
static int width = 0;
|
||||||
static int height = 0;
|
static int height = 0;
|
||||||
|
static struct timeval selectTimeout = { 0, 0 };
|
||||||
|
|
||||||
// mandatory symbols
|
// mandatory symbols
|
||||||
MODULE_EXPORT char *api_version = API_VERSION;
|
MODULE_EXPORT char *api_version = API_VERSION;
|
||||||
@@ -215,6 +216,9 @@ ms6931_init (struct lcd_logical_driver *drvthis, char *args)
|
|||||||
framebuf = (unsigned char *) malloc (width * height);
|
framebuf = (unsigned char *) malloc (width * height);
|
||||||
ms6931_clear(drvthis);
|
ms6931_clear(drvthis);
|
||||||
|
|
||||||
|
selectTimeout.tv_sec = 0;
|
||||||
|
selectTimeout.tv_usec = 0;
|
||||||
|
|
||||||
report (RPT_DEBUG, "ms6931_init: done");
|
report (RPT_DEBUG, "ms6931_init: done");
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
@@ -417,7 +421,6 @@ ms6931_heartbeat (struct lcd_logical_driver *drvthis, int state)
|
|||||||
/////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////
|
||||||
// controls the keys
|
// controls the keys
|
||||||
//
|
//
|
||||||
static struct timeval selectTimeout = { 0, 0 };
|
|
||||||
|
|
||||||
MODULE_EXPORT char
|
MODULE_EXPORT char
|
||||||
ms6931_get_key (struct lcd_logical_driver *drvthis)
|
ms6931_get_key (struct lcd_logical_driver *drvthis)
|
||||||
|
|||||||
Reference in New Issue
Block a user