diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-23 13:57:38 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-23 13:57:38 +0100 |
| commit | 3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 (patch) | |
| tree | 43d267ff02ef9c04b60305adead701de8c5a1fa5 /Source/Serial.c | |
| parent | a923f153f906144de599024148fc868e234d06cd (diff) | |
| download | airport-3b80f74ce10cfd7e55199dcb9a8c4b80598227d2.tar.gz | |
Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).
Improved const-correctness and scope for some variables.
Diffstat (limited to 'Source/Serial.c')
| -rw-r--r-- | Source/Serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
