Commit 422b6f9b authored by Sandeep Mistry's avatar Sandeep Mistry

Make SoftwareSerial receive buffer a uint8_t array

parent 8beaa0e1
......@@ -48,7 +48,7 @@ http://arduiniana.org.
// Statics
//
SoftwareSerial *SoftwareSerial::active_object = 0;
char SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
uint8_t SoftwareSerial::_receive_buffer[_SS_MAX_RX_BUFF];
volatile uint8_t SoftwareSerial::_receive_buffer_tail = 0;
volatile uint8_t SoftwareSerial::_receive_buffer_head = 0;
......@@ -482,5 +482,5 @@ int SoftwareSerial::peek()
return -1;
// Read from "head"
return (uint8_t)_receive_buffer[_receive_buffer_head];
return _receive_buffer[_receive_buffer_head];
}
......@@ -66,7 +66,7 @@ private:
uint16_t _inverse_logic:1;
// static data
static char _receive_buffer[_SS_MAX_RX_BUFF];
static uint8_t _receive_buffer[_SS_MAX_RX_BUFF];
static volatile uint8_t _receive_buffer_tail;
static volatile uint8_t _receive_buffer_head;
static SoftwareSerial *active_object;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment