mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
fix for a bug introduced in the DE-LD021 driver
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1140 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
+3
-3
@@ -325,10 +325,10 @@ static int drv_MO_start(const char *section, const int quiet)
|
||||
Model = -1;
|
||||
}
|
||||
|
||||
if (Models[i].protocol == 3) { // Sure electronics USB LCD board - full line output
|
||||
if (Model != -1 && Models[Model].protocol == 3) { // Sure electronics USB LCD board - full line output
|
||||
int i, j;
|
||||
for (i = 0; i < Models[i].rows; i++) { // Clear buffer
|
||||
for (j = 0; j < Models[i].cols; j++) {
|
||||
for (i = 0; i < Models[Model].rows; i++) { // Clear buffer
|
||||
for (j = 0; j < Models[Model].cols; j++) {
|
||||
dispBuffer[i][j] = ' ';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user