From 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 23 Nov 2018 13:57:38 +0100 Subject: Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise). Improved const-correctness and scope for some variables. --- Source/Serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Serial.c') diff --git a/Source/Serial.c b/Source/Serial.c index 528e97b..57d9bb4 100644 --- a/Source/Serial.c +++ b/Source/Serial.c @@ -56,7 +56,7 @@ bool SerialRead(uint8_t* ptrArray, size_t nBytes) while ( (SIOCheckInBuffer() == SERIAL_RX_FIFO_EMPTY)); // Wait for RX FIFO not empty *(ptrArray++) = SIOReadByte(); - }while (--nBytes); + } while (--nBytes); return true; } @@ -79,7 +79,7 @@ bool SerialWrite(void* ptrArray, size_t nBytes) SIOSendByte(*(uint8_t*)ptrArray++); - }while (--nBytes); + } while (--nBytes); serial_busy = false; -- cgit v1.2.3