Interface for Sharp LS012B7DD01 TFT-LCD

Dependents:   MAX32630FTHR_iButton_uSD_Logger

Revision:
2:ccef06c5becf
Parent:
1:ea88fe2c73ed
--- a/Sharp_LS012B7DD01.cpp	Tue Nov 22 00:24:55 2016 +0000
+++ b/Sharp_LS012B7DD01.cpp	Tue Nov 22 20:49:39 2016 +0000
@@ -25,8 +25,6 @@
 
 #include "Sharp_LS012B7DD01.h"
 
-extern Serial term;
-
 //5x7 character bit map
 static const uint8_t font_5x7[95][6] = {
 	{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, //SPACE
@@ -214,7 +212,7 @@
 	
 	size_t len = strlen(s);
 	
-	if((ln < 4) && ((pos + len - 1) < 30))
+	if((ln < 4) && ((pos + (len - 1)) < 30))
 	{
 		for(size_t idx = 0; idx < len; idx++)
 		{