Skip to content

Commit

Permalink
Fix local reference (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Jan 29, 2018
1 parent 446e06b commit fd148e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/libs/StreamInjector.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class StreamInjector : public Stream {
typedef std::function<void(uint8_t ch)> writeCallback;

StreamInjector(Stream& serial, size_t buflen = 128) : _stream(serial), _buffer_size(buflen) {
char * _buffer = new char[buflen];
_buffer = new char[buflen];
}

~StreamInjector() {
Expand Down

0 comments on commit fd148e2

Please sign in to comment.