Removed duplicate variable

git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@247 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
swo
2017-10-11 07:06:31 +00:00
parent a8dceb88a0
commit b32a1c107f

View File

@@ -1109,7 +1109,6 @@ static void hwValidationMenuSM(struct HwValidationMenu* self, Button_Pressed_t b
char key; char key;
Keypad_KeyState keyState; Keypad_KeyState keyState;
char data[CMD_BUFFER_SIZE] = {0}; char data[CMD_BUFFER_SIZE] = {0};
size_t actual_length = 0;
size_t actualLength; size_t actualLength;
char buffer[sizeof(struct KeypadQueueItem) / sizeof(char)]; char buffer[sizeof(struct KeypadQueueItem) / sizeof(char)];
@@ -1120,9 +1119,9 @@ static void hwValidationMenuSM(struct HwValidationMenu* self, Button_Pressed_t b
while( 1 ) while( 1 )
{ {
IODevice_read(self->ioDevice, data, 1, &actual_length); IODevice_read(self->ioDevice, data, 1, &actualLength);
// Check if ESC has been pressed // Check if ESC has been pressed
if(actual_length == 1 && data[0] == 0x1B) if(actualLength == 1 && data[0] == 0x1B)
{ {
break; break;
} }