File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ void HardwareSerial::end()
152
152
153
153
int HardwareSerial::available (void )
154
154
{
155
- return (unsigned int )(SERIAL_RX_BUFFER_SIZE + _rx_buffer_head - _rx_buffer_tail) % SERIAL_RX_BUFFER_SIZE;
155
+ return (int )(SERIAL_RX_BUFFER_SIZE + _rx_buffer_head - _rx_buffer_tail) % SERIAL_RX_BUFFER_SIZE;
156
156
}
157
157
158
158
int HardwareSerial::peek (void )
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ SoftwareSerial::~SoftwareSerial()
355
355
void SoftwareSerial::setTX (uint8_t tx)
356
356
{
357
357
pinMode (tx, OUTPUT);
358
- digitalWrite (tx, HIGH);
358
+ digitalWrite (tx, _inverse_logic ? LOW : HIGH);
359
359
_transmitBitMask = digitalPinToBitMask (tx);
360
360
uint8_t port = digitalPinToPort (tx);
361
361
_transmitPortRegister = portOutputRegister (port);
You can’t perform that action at this time.
0 commit comments