fixed compiler warnings

Fork of TextLCD by Wim Huiskamp

Revision:
42:7f270955a6b1
Parent:
41:111ca62e8a59
Child:
43:7f31a3a5e648
--- a/TextLCD.cpp	Fri Nov 06 18:59:27 2015 +0000
+++ b/TextLCD.cpp	Sun Apr 30 14:53:35 2017 +0000
@@ -3441,7 +3441,7 @@
 // Write data to MCP23008 I2C portexpander
 // Used for mbed I2C bus expander
 void TextLCD_I2C::_writeRegister (int reg, int value) {
-  char data[] = {reg, value};
+  char data[] = {(char)reg, (char)value};
     
   _i2c->write(_slaveAddress, data, 2); 
 }
@@ -3735,7 +3735,7 @@
 //   RW=0 means write to controller. RW=1 means that controller will be read from after the next command. 
 //        Many native I2C controllers dont support this option and it is not used by this lib. 
 //
-  char data[] = {_controlbyte, value};
+  char data[] = {(char)_controlbyte, (char)value};
     
 #if(LCD_I2C_ACK==1)
 //Controllers that support ACK