summaryrefslogtreecommitdiff
path: root/lcd.c
diff options
context:
space:
mode:
authorroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
committerroot <root@fedora-arm.domain.avtechpulse.com>1999-12-31 20:13:53 -0500
commit08819acf094883c069e7c3088d5da6a9c24c45b8 (patch)
tree6fcd79175b9efbb69689f31ff7650e6fbc77ac86 /lcd.c
parent80b991816acb29e645fa7e047325942f8f050861 (diff)
fix various warnings
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);