]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/trab/vfd.c
Add support for arbitrary bitmaps for TRAB's VFD command;
[karo-tx-uboot.git] / board / trab / vfd.c
index d0dcedcec842c2d655e31454025d918388ff4e5c..e00294f0feeeeaa021d95079e2ec08eb67db5279 100644 (file)
@@ -346,9 +346,10 @@ void transfer_pic(int display, unsigned char *adr, int height, int width)
                                }
                        }
                }
-               display++;
-               if (display > 3)
-                       display = 0;
+               if (display > 0)
+                       display--;
+               else
+                       display = 3;
        }
 }