Drop sync bool and getter for the buffer
This commit is contained in:
parent
32a277e625
commit
f15ad42217
1 changed files with 7 additions and 0 deletions
|
@ -206,6 +206,13 @@ int16_t PhysicalLayer::readData(String& str, size_t len) {
|
|||
}
|
||||
#endif
|
||||
|
||||
uint8_t* PhysicalLayer::getDirectBuffer(bool drop) {
|
||||
if(drop) {
|
||||
dropsync();
|
||||
}
|
||||
return (this->buffer);
|
||||
}
|
||||
|
||||
int16_t PhysicalLayer::readData(uint8_t* data, size_t len) {
|
||||
(void)data;
|
||||
(void)len;
|
||||
|
|
Loading…
Add table
Reference in a new issue