Browse Source

Omit the ::write method, as Print already implements it.


			
			
				mission-4.1.18
			
			
		
DrZiplok@gmail.com 15 years ago
parent
commit
6b6637bd06
  1. 13
      libraries/FastSerial/FastSerial.cpp
  2. 1
      libraries/FastSerial/FastSerial.h

13
libraries/FastSerial/FastSerial.cpp

@ -198,9 +198,9 @@ FastSerial::write(uint8_t c) @@ -198,9 +198,9 @@ FastSerial::write(uint8_t c)
uint8_t i;
// wait for room in the tx buffer
do {
i = (_txBuffer.head + 1) % RX_BUFFER_SIZE;
} while (i == _txBuffer.tail);
i = (_txBuffer.head + 1) % TX_BUFFER_SIZE;
while (i == _txBuffer.tail)
;
// add byte to the buffer
_txBuffer.bytes[_txBuffer.head] = c;
@ -210,13 +210,6 @@ FastSerial::write(uint8_t c) @@ -210,13 +210,6 @@ FastSerial::write(uint8_t c)
*_ucsrb |= _portTxBits;
}
void
FastSerial::write(const uint8_t *buffer, int count)
{
while (count--)
write(*buffer++);
}
// STDIO emulation /////////////////////////////////////////////////////////////
int

1
libraries/FastSerial/FastSerial.h

@ -104,7 +104,6 @@ public: @@ -104,7 +104,6 @@ public:
int read(void);
void flush(void);
void write(uint8_t c);
void write(const uint8_t *buffer, int count);
using Stream::write;
// stdio extensions

Loading…
Cancel
Save