Internal and external module buffers are now private
This commit is contained in:
committed by
Raphael Coeffic
parent
ab6033e4d5
commit
f952c5f7c7
@@ -106,7 +106,7 @@ class MultiInternalUpdateDriver: public MultiFirmwareUpdateDriver
|
||||
|
||||
bool getByte(uint8_t & byte) const override
|
||||
{
|
||||
return intmoduleFifo.pop(byte);
|
||||
return IntmoduleSerialDriver.getByte(uart_ctx, &byte) > 0;
|
||||
}
|
||||
|
||||
void sendByte(uint8_t byte) const override
|
||||
@@ -116,7 +116,7 @@ class MultiInternalUpdateDriver: public MultiFirmwareUpdateDriver
|
||||
|
||||
void clear() const override
|
||||
{
|
||||
intmoduleFifo.clear();
|
||||
IntmoduleSerialDriver.clearRxBuffer(uart_ctx);
|
||||
}
|
||||
|
||||
void deinit(bool inverted) override
|
||||
|
||||
Reference in New Issue
Block a user