From bd87b5e4f5cf8154298cdcd3d4334541e20660fd Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 8 May 2017 08:15:46 -0400 Subject: [PATCH] removing unused parameter --- firmware/console/status_loop.cpp | 2 +- firmware/controllers/lcd_controller.cpp | 6 +++--- firmware/controllers/lcd_controller.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 661a4b251e..0a75b2dbef 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -644,7 +644,7 @@ static void lcdThread(void *arg) { while (true) { if (engineConfiguration->bc.useLcdScreen) { #if EFI_HD44780_LCD - updateHD44780lcd(engine); + updateHD44780lcd(); #endif } chThdSleepMilliseconds(engineConfiguration->bc.lcdThreadPeriod); diff --git a/firmware/controllers/lcd_controller.cpp b/firmware/controllers/lcd_controller.cpp index 7007d2f367..c696c32889 100644 --- a/firmware/controllers/lcd_controller.cpp +++ b/firmware/controllers/lcd_controller.cpp @@ -116,7 +116,7 @@ void initLcdController(void) { msObjectInit(&lcdLineStream, (uint8_t *) lcdLineBuffer, sizeof(lcdLineBuffer), 0); } -static char * prepareVBattMapLine(engine_configuration_s *engineConfiguration, char *buffer) { +static char * prepareVBattMapLine(char *buffer) { char *ptr = buffer; *ptr++ = 'V'; ptr = ftoa(ptr, getVBatt(PASS_ENGINE_PARAMETER_F), 10.0f); @@ -126,7 +126,7 @@ static char * prepareVBattMapLine(engine_configuration_s *engineConfiguration, c return ptr; } -static char * prepareCltIatTpsLine(Engine *engine, char *buffer) { +static char * prepareCltIatTpsLine(char *buffer) { char *ptr = buffer; *ptr++ = 'C'; @@ -321,7 +321,7 @@ static void fillWithSpaces(void) { } } -void updateHD44780lcd(Engine *engine) { +void updateHD44780lcd(void) { MenuItem *p = tree.topVisible; int screenY = 0; for (; screenY < tree.linesCount && p != NULL; screenY++) { diff --git a/firmware/controllers/lcd_controller.h b/firmware/controllers/lcd_controller.h index ba414538c7..d61dc4109e 100644 --- a/firmware/controllers/lcd_controller.h +++ b/firmware/controllers/lcd_controller.h @@ -13,6 +13,6 @@ #define MAX_LCD_WIDTH 20 void initLcdController(void); -void updateHD44780lcd(Engine *engine); +void updateHD44780lcd(void); #endif /* LCD_CONTROLLER_H_ */