From 44e13547adb794928f1cb2247c7cc038af07c924 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sun, 9 Apr 2006 14:17:50 +0000 Subject: [lcd4linux @ 2006-04-09 14:17:49 by reinelt] autoconf/library fixes, image and graphic display inversion git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@655 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_LCD2USB.c | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'drv_LCD2USB.c') diff --git a/drv_LCD2USB.c b/drv_LCD2USB.c index 98ec9a6..fd48c2e 100644 --- a/drv_LCD2USB.c +++ b/drv_LCD2USB.c @@ -1,4 +1,4 @@ -/* $Id: drv_LCD2USB.c,v 1.9 2006/03/18 14:54:36 harbaum Exp $ +/* $Id: drv_LCD2USB.c,v 1.10 2006/04/09 14:17:50 reinelt Exp $ * * driver for USB2LCD display interface * see http://www.harbaum.org/till/lcd2usb for schematics @@ -24,6 +24,9 @@ * * * $Log: drv_LCD2USB.c,v $ + * Revision 1.10 2006/04/09 14:17:50 reinelt + * autoconf/library fixes, image and graphic display inversion + * * Revision 1.9 2006/03/18 14:54:36 harbaum * Improved USB error recovery * @@ -199,19 +202,18 @@ static int drv_L2U_send(int request, int value, int index) // try to close and reopen connection if (drv_L2U_open(bus_id, device_id) < 0) { - error("%s: could not re-detect LCD2USB USB LCD", Name); - got_signal = -1; - return -1; + error("%s: could not re-detect LCD2USB USB LCD", Name); + got_signal = -1; + return -1; } - // and try to re-send command if (usb_control_msg(lcd, USB_TYPE_VENDOR, request, value, index, NULL, 0, 1000) < 0) { - error("%s: retried USB request failed, aborting!", Name); - got_signal = -1; - return -1; + error("%s: retried USB request failed, aborting!", Name); + got_signal = -1; + return -1; } - info("%s: Device successfully reconnected.", Name); + info("%s: Device successfully reconnected.", Name); } return 0; @@ -611,7 +613,7 @@ int drv_L2U_init(const char *section, const int quiet) int asc255bug; int ret; - info("%s: %s", Name, "$Revision: 1.9 $"); + info("%s: %s", Name, "$Revision: 1.10 $"); /* display preferences */ XRES = 5; /* pixel width of one char */ -- cgit v1.2.3