Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
422b6f9b
Commit
422b6f9b
authored
Mar 10, 2016
by
Sandeep Mistry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make SoftwareSerial receive buffer a uint8_t array
parent
8beaa0e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
libraries/SoftwareSerial/src/SoftwareSerial.cpp
libraries/SoftwareSerial/src/SoftwareSerial.cpp
+2
-2
libraries/SoftwareSerial/src/SoftwareSerial.h
libraries/SoftwareSerial/src/SoftwareSerial.h
+1
-1
No files found.
libraries/SoftwareSerial/src/SoftwareSerial.cpp
View file @
422b6f9b
...
...
@@ -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
];
}
libraries/SoftwareSerial/src/SoftwareSerial.h
View file @
422b6f9b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment