Drop sync bool and getter for the buffer

This commit is contained in:
Crsarmv7l 2024-04-29 19:59:41 -04:00 committed by GitHub
parent 32a277e625
commit f15ad42217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -206,6 +206,13 @@ int16_t PhysicalLayer::readData(String& str, size_t len) {
} }
#endif #endif
uint8_t* PhysicalLayer::getDirectBuffer(bool drop) {
if(drop) {
dropsync();
}
return (this->buffer);
}
int16_t PhysicalLayer::readData(uint8_t* data, size_t len) { int16_t PhysicalLayer::readData(uint8_t* data, size_t len) {
(void)data; (void)data;
(void)len; (void)len;