diff --git a/code/espurna/libs/StreamInjector.h b/code/espurna/libs/StreamInjector.h index 56fa8ed4..92eb69de 100644 --- a/code/espurna/libs/StreamInjector.h +++ b/code/espurna/libs/StreamInjector.h @@ -13,7 +13,7 @@ class StreamInjector : public Stream { typedef std::function writeCallback; StreamInjector(Stream& serial, size_t buflen = 128) : _stream(serial), _buffer_size(buflen) { - char * _buffer = new char[buflen]; + _buffer = new char[buflen]; } ~StreamInjector() {