space cleanup
This commit is contained in:
@@ -254,7 +254,7 @@ void Sync_Read_Buffer(int fd, unsigned char expected_bytes)
|
||||
|
||||
// ToDo: check that expected_bytes < sizeof(Incoming)
|
||||
BytesRead = read(fd, Incoming, expected_bytes);
|
||||
if (BytesRead == -1){
|
||||
if (BytesRead == -1) {
|
||||
/* printf("~~~Problem reading: %s .\n", strerror(errno)); */
|
||||
}
|
||||
else {
|
||||
@@ -271,7 +271,7 @@ void Sync_Read_Buffer(int fd, unsigned char expected_bytes)
|
||||
SerialReceiveBuffer[ReceiveBufferHead] = Incoming[i];
|
||||
|
||||
/* increment write pointer (wrap if needed) */
|
||||
ReceiveBufferHead = (ReceiveBufferHead + 1) % RECEIVEBUFFERSIZE;
|
||||
ReceiveBufferHead = (ReceiveBufferHead + 1) % RECEIVEBUFFERSIZE;
|
||||
}
|
||||
/* printf("\n"); */
|
||||
}
|
||||
@@ -316,7 +316,6 @@ unsigned char DiscardGetByte(void)
|
||||
{
|
||||
unsigned char return_byte = '\0';
|
||||
|
||||
|
||||
/* wrap read pointer to the receive buffer */
|
||||
ReceiveBufferTail %= RECEIVEBUFFERSIZE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user