aboutsummaryrefslogtreecommitdiffstats
path: root/drv_LCD2USB.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-09 14:17:50 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-09 14:17:50 +0000
commit44e13547adb794928f1cb2247c7cc038af07c924 (patch)
treeea7a12e5e2503780f06b20529df3efd36197ea08 /drv_LCD2USB.c
parent117610a1811776aee9b98b9d9ac3427389375ca5 (diff)
downloadlcd4linux-44e13547adb794928f1cb2247c7cc038af07c924.tar.gz
[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
Diffstat (limited to 'drv_LCD2USB.c')
-rw-r--r--drv_LCD2USB.c22
1 files changed, 12 insertions, 10 deletions
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 */