summaryrefslogtreecommitdiff
path: root/lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcd.c')
-rw-r--r--lcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcd.c b/lcd.c
index 17d3788..2579f48 100644
--- a/lcd.c
+++ b/lcd.c
@@ -66,7 +66,7 @@ static void break_up_string (char *in_string, int N, char **str1, char **str2, c
strcpy(copy_input, in_string+copypos);
}
n = strlen(interm_str);
- for (k=n-1; k=0; k--) { //trim space
+ for ((k=n-1); (k=0); k--) { //trim space
if (*(interm_str+k)==' ') {
*(interm_str+k)=0;
} else {
@@ -96,8 +96,8 @@ static void break_up_string (char *in_string, int N, char **str1, char **str2, c
void LCD_clear()
{
- char i;
- char j;
+ int i;
+ int j;
I2C_Write(PCF8574A+LCD_Port, 0x00 | LCD_ENABLE);
I2C_Write(PCF8574A+LCD_Port, 0x00);