Use static StreamOutput::fifo for accessor methods.

This commit is contained in:
Jared Boone 2016-04-27 10:52:11 -07:00
parent dc1ba7e6f3
commit 75159fcc00

View File

@ -56,11 +56,11 @@ public:
}
size_t available() {
return config.fifo->len();
return fifo->len();
}
size_t read(void* const data, const size_t length) {
return config.fifo->out(reinterpret_cast<uint8_t*>(data), length);
return fifo->out(reinterpret_cast<uint8_t*>(data), length);
}
static FIFO<uint8_t>* fifo;