diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-14 10:32:21 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-14 10:32:21 -0400 |
commit | cc81ed5ed18464d6e632c79a1ccc9a2a8eea45b4 (patch) | |
tree | f6c1168e533fe28859269c111864ce82f88a8300 /lcd.c | |
parent | 1d122d034def5e9f7e0a76159866de0f36ab56f7 (diff) |
astyle formatting run
Diffstat (limited to 'lcd.c')
-rw-r--r-- | lcd.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -29,7 +29,7 @@ static void break_up_string (char *in_string, int N, char **str1, char **str2, c char *copy_input;
char *p;
- j=k=copypos=0;
+ j=k=copypos=0;
input_length=strlen(in_string);
copy_input = g_strdup(in_string);
@@ -129,7 +129,9 @@ static void LCD_RAM_write(int RAM_start,int row, int col, char *LCD_string) int ram_location;
char last_op_a_write;
- if (!LCD_string) return;
+ if (!LCD_string) {
+ return;
+ }
String_length=strlen(LCD_string);
enable_one_lcd=0x02;
@@ -256,7 +258,7 @@ void LCD_initialize(void) I2C_Write(PCF8574A+LCD_Port, 0x80);
/* wait 40us */
- g_usleep(40);
+ g_usleep(40);
LCD_clear();
@@ -266,7 +268,7 @@ void LCD_initialize(void) I2C_Write(PCF8574A+LCD_Port, 0x60);
/* wait 40us */
- g_usleep(40);
+ g_usleep(40);
I2C_Write(PCF8574A+LCD_Port, 0x00 | LCD_ENABLE);
I2C_Write(PCF8574A+LCD_Port, 0x00);
@@ -296,8 +298,8 @@ void LCD_display_error_message(char *response) LCD_write(3,0,Press_Change_Message);
g_free (row0);
- g_free (row1);
- g_free (row2);
+ g_free (row1);
+ g_free (row2);
return;
}
|