]> git.webhop.me Git - lcd4linux.git/commitdiff
signed/unsigned mismatch
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 3 Aug 2008 02:44:22 +0000 (02:44 +0000)
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 3 Aug 2008 02:44:22 +0000 (02:44 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@886 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

drv_IRLCD.c

index 4e28f0348d35c5d7f0daddff159b84badca1697b..d5e8e19b298fc5a4511b30b07c452569983fcc4e 100644 (file)
@@ -191,7 +191,7 @@ static int drv_IRLCD_send(int request, unsigned char *buffer, int size)
 /* text mode displays only */
 static void drv_IRLCD_clear(void)
 {
-    char cmd[1];
+    unsigned char cmd[1];
 
     cmd[0] = 0x01;             /* clear */
     drv_IRLCD_send(LCD_INSTR, cmd, 1);
@@ -203,7 +203,7 @@ static void drv_IRLCD_clear(void)
 /* text mode displays only */
 static void drv_IRLCD_write(const int row, const int col, const char *data, int len)
 {
-    char cmd[1];
+    unsigned char cmd[1];
     static int pos;
 
     /* for 2 lines display */
@@ -223,7 +223,7 @@ static void drv_IRLCD_write(const int row, const int col, const char *data, int
 /* text mode displays only */
 static void drv_IRLCD_defchar(const int ascii, const unsigned char *matrix)
 {
-    char cmd[10];
+    unsigned char cmd[10];
     int i;
 
     /* Write to CGRAM */