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; }