From bd2be80b549b27bd64db2c0875bc0da993fa8c5a Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 18 Nov 2021 13:25:04 +0100 Subject: [PATCH] cbuf: allow inheritance (#5883) changes "private" vars to "protected" so that descendants are allowed to access them. --- cores/esp32/cbuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/cbuf.h b/cores/esp32/cbuf.h index ca65affc..490352e3 100644 --- a/cores/esp32/cbuf.h +++ b/cores/esp32/cbuf.h @@ -62,7 +62,7 @@ public: cbuf *next; -private: +protected: inline char* wrap_if_bufend(char* ptr) const { return (ptr == _bufend) ? _buf : ptr;