might make sense

This commit is contained in:
Robin Müller 2022-05-09 21:29:04 +02:00
parent d72b212fa6
commit b9359ab75c

View File

@ -174,6 +174,7 @@ ReturnValue_t SpiComIF::performRegularSendOperation(SpiCookie* spiCookie, const
size_t sendLen) {
address_t spiAddress = spiCookie->getSpiAddress();
auto iter = spiDeviceMap.find(spiAddress);
std::memset(iter->second.replyBuffer.data(), 0, sendLen);
if (iter != spiDeviceMap.end()) {
spiCookie->assignReadBuffer(iter->second.replyBuffer.data());
}