aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-07-16 04:58:05 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2010-07-16 04:58:05 +0000
commitfc683d582b93fc54827dd46f5c775010c0295731 (patch)
tree01e060fb2d8cd2fb69d294e2033d516231efb008
parenta9ed07b8c5b516224e328305eb0f1290f8327ad0 (diff)
downloadlcd4linux-fc683d582b93fc54827dd46f5c775010c0295731.tar.gz
compile error fixed (thanks to Tom)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1127 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rw-r--r--drv_MatrixOrbital.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/drv_MatrixOrbital.c b/drv_MatrixOrbital.c
index 4cfb88c..fce549b 100644
--- a/drv_MatrixOrbital.c
+++ b/drv_MatrixOrbital.c
@@ -109,6 +109,25 @@ static MODEL Models[] = {
/*** hardware dependant functions ***/
/****************************************/
+static void drv_MO_write(const int row, const int col, const char *data, const int len)
+{
+ char cmd[5] = "\376Gyx";
+
+ if (Models[Model].protocol == 3) { // Sure electronics USB LCD board - full line output
+ cmd[2] = (char) 1;
+ cmd[3] = (char) row + 1;
+ strncpy(&(dispBuffer[row][col]), data, len);
+ drv_generic_serial_write(cmd, 4);
+ drv_generic_serial_write(dispBuffer[row], 16);
+ } else {
+ cmd[2] = (char) col + 1;
+ cmd[3] = (char) row + 1;
+ drv_generic_serial_write(cmd, 4);
+ drv_generic_serial_write(data, len);
+ }
+}
+
+
static void drv_MO_clear(void)
{
int i, j;
@@ -137,25 +156,6 @@ static void drv_MO_clear(void)
}
-static void drv_MO_write(const int row, const int col, const char *data, const int len)
-{
- char cmd[5] = "\376Gyx";
-
- if (Models[Model].protocol == 3) { // Sure electronics USB LCD board - full line output
- cmd[2] = (char) 1;
- cmd[3] = (char) row + 1;
- strncpy(&(dispBuffer[row][col]), data, len);
- drv_generic_serial_write(cmd, 4);
- drv_generic_serial_write(dispBuffer[row], 16);
- } else {
- cmd[2] = (char) col + 1;
- cmd[3] = (char) row + 1;
- drv_generic_serial_write(cmd, 4);
- drv_generic_serial_write(data, len);
- }
-}
-
-
static void drv_MO_defchar(const int ascii, const unsigned char *matrix)
{
int i;