From b32a1c107fe05ca09b2eff5da90d5c7a97e30ff9 Mon Sep 17 00:00:00 2001 From: swo Date: Wed, 11 Oct 2017 07:06:31 +0000 Subject: [PATCH] Removed duplicate variable git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@247 05563f52-14a8-4384-a975-3d1654cca0fa --- .../0 - Code/hsb-mrts/src/hwValidationMenu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/hsb-mrts/src/hwValidationMenu.c b/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/hsb-mrts/src/hwValidationMenu.c index 6c69bde..ef06d43 100644 --- a/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/hsb-mrts/src/hwValidationMenu.c +++ b/S - Software/0 - HSB MRTS Kathode-MCP/3 - Implementation/0 - Code/hsb-mrts/src/hwValidationMenu.c @@ -1109,7 +1109,6 @@ static void hwValidationMenuSM(struct HwValidationMenu* self, Button_Pressed_t b char key; Keypad_KeyState keyState; char data[CMD_BUFFER_SIZE] = {0}; - size_t actual_length = 0; size_t actualLength; char buffer[sizeof(struct KeypadQueueItem) / sizeof(char)]; @@ -1120,9 +1119,9 @@ static void hwValidationMenuSM(struct HwValidationMenu* self, Button_Pressed_t b while( 1 ) { - IODevice_read(self->ioDevice, data, 1, &actual_length); + IODevice_read(self->ioDevice, data, 1, &actualLength); // Check if ESC has been pressed - if(actual_length == 1 && data[0] == 0x1B) + if(actualLength == 1 && data[0] == 0x1B) { break; }