From 3d85ed2b1731a7bef0f57fe6d70136c4f9fa6cc5 Mon Sep 17 00:00:00 2001 From: mzuther Date: Sun, 14 Feb 2010 12:05:58 +0000 Subject: drv_picoLCDGraphic.c: added configuration for USB read timeout git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1113 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_picoLCDGraphic.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drv_picoLCDGraphic.c b/drv_picoLCDGraphic.c index afbc61f..f136a79 100644 --- a/drv_picoLCDGraphic.c +++ b/drv_picoLCDGraphic.c @@ -92,6 +92,10 @@ static int dirty = 1; /* timer for display redraw (set to zero for "direct updates") */ static int update = 0; +/* USB read timeout in ms (the picoLCD 256x64 times out on every read + unless a key has been pressed!) */ +static int read_timeout = 0; + static char Name[] = "picoLCDGraphic"; static unsigned char *pLG_framebuffer; @@ -178,7 +182,7 @@ static int drv_pLG_open(void) static int drv_pLG_read(unsigned char *data, int size) { - return usb_interrupt_read(lcd, USB_ENDPOINT_IN + 1, (char *) data, size, 1000); + return usb_interrupt_read(lcd, USB_ENDPOINT_IN + 1, (char *) data, size, read_timeout); } @@ -465,6 +469,10 @@ static int drv_pLG_start(const char *section, const int quiet) /* set display redraw interval (set to zero for "direct updates") */ cfg_number(section, "update", 200, 0, -1, &update); + /* USB read timeout in ms (the picoLCD 256x64 times out on every + read unless a key has been pressed!) */ + cfg_number(section, "Timeout", 5, 0, -1, &read_timeout); + s = cfg_get(section, "Size", NULL); if (s == NULL || *s == '\0') { error("%s: no '%s.Size' entry from %s", Name, section, cfg_source()); -- cgit v1.2.3 '>
path: root/isdb-t/br-sc-Florianopolis(campeche) (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-01-31isdb-t: Update Brazil channel listsMauro Carvalho Chehab1935-11312/+70605
2024-01-30dvb-s: drop transponders that aren't there at Lyngsat anymoreMauro Carvalho Chehab50-20357/+0
2024-01-30dvb-s: update from today's Lyngsat reportMauro Carvalho Chehab196-15543/+15859
2024-01-30dtv-scan-tables: full uk transmitter updateSimon Liddicott81-500/+163
2022-11-25dtv-scan-tables: hu-Digikabel changesHrotkó Gábor1-1/+26
2022-04-30pt-All: fix modulationMauro Carvalho Chehab1-10/+10
2022-04-30pt-All: Update Portugal channelsMauro Carvalho Chehab1-34/+70
2022-03-07Update Brazilian ISDB-T tablesMauro Carvalho Chehab549-2923/+13860
2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326
2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24
2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312
2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0
2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721
2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182
2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666