older version for rasplex, hope it works.

This commit is contained in:
2016-11-04 17:32:54 +01:00
parent c2f24e5ef6
commit 6b609a3c9d
40 changed files with 196 additions and 6764 deletions
+5 -5
View File
@@ -60,13 +60,13 @@ typedef struct rawserial_private_data {
/** \name Event loop timing. refresh_time and refresh_delta form the
* event loop timing mechanism for configurable update rates.
*@{*/
unsigned int refresh_time; /**< time at the last screen update */
unsigned int refresh_delta; /**< time step to next screen update */
uint refresh_time; /**< time at the last screen update */
uint refresh_delta; /**< time step to next screen update */
/**@}*/
} PrivateData;
/* Local prototypes */
static unsigned int get_millisecond_time(void);
static uint get_millisecond_time(void);
/* Vars for the server core */
@@ -303,7 +303,7 @@ rawserial_flush(Driver *drvthis)
PrivateData *p = drvthis->private_data;
char out[LCD_MAX_WIDTH * LCD_MAX_HEIGHT];
unsigned int currentTime = get_millisecond_time();
uint currentTime = get_millisecond_time();
int t_delta = currentTime - p->refresh_time;
/*
@@ -415,7 +415,7 @@ rawserial_get_info(Driver *drvthis)
*
* \return int with current millisecond time.
*/
static unsigned
static uint
get_millisecond_time(void)
{
struct timeval ts;