return const buffer

This commit is contained in:
Nicu Hodos 2023-01-21 17:03:37 +01:00
parent 689597f783
commit a3cb224206

View File

@ -7,9 +7,9 @@ class SerialReader {
char buffer[bufferLength]; char buffer[bufferLength];
public: public:
char* getBuffer() { const char* getBuffer() {
return buffer; return buffer;
} }
int readLine(HardwareSerial &serial) { int readLine(HardwareSerial &serial) {
static size_t pos = 0; static size_t pos = 0;