Fork of David Smart's RA8875 library

Fork of RA8875 by David Smart

Revision:
40:04aa280dfa39
Parent:
39:805cee56872d
Child:
41:2956a0a221e5
diff -r 805cee56872d -r 04aa280dfa39 RA8875.cpp
--- a/RA8875.cpp	Sun Jan 26 02:02:29 2014 +0000
+++ b/RA8875.cpp	Tue Feb 04 02:58:06 2014 +0000
@@ -311,6 +311,8 @@
 {
     unsigned char reg = ReadCommand(0x22);
     
+    if (vScale == -1)
+        vScale = hScale;
     if (hScale >= 1 && hScale <= 4 && vScale >= 1 && vScale <= 4) {
         reg &= 0xF0;    // keep the high nibble as is.
         reg |= ((hScale - 1) << 2);