Release semaphore only if valid command
@@ -920,7 +920,7 @@ espi_parse_received(esp_recv_t* rcv) {
} else {
esp.msg->i++; /* Number of continue calls */
}
- }
+
/*
* When the command is finished,
* release synchronization semaphore
@@ -931,6 +931,7 @@ espi_parse_received(esp_recv_t* rcv) {
}
}
}
+}
#if !ESP_CFG_INPUT_USE_PROCESS || __DOXYGEN__
/**
