Skip to content

Commit

Permalink
Corrected DMA end address calculation for SAME5x WiFi memory watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Oct 25, 2024
1 parent fc1cd16 commit d09b48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Networking/ESP8266WiFi/WiFiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ int32_t WiFiInterface::SendCommand(NetworkCommand cmd, SocketNumber socketNum, u
__DMB(); // just in case this might help
}

watcher.Check(reinterpret_cast<uint32_t>(&bufferIn->data[bufferIn->hdr.response])); // check whether the watched memory has been corrupted. This is where we observe corruption.
watcher.Check(reinterpret_cast<uint32_t>(&bufferIn->data[(bufferIn->hdr.response) * 4])); // check whether the watched memory has been corrupted. This is where we observe corruption.
#else
while (!spi_dma_check_rx_complete()) { } // Wait for DMA to complete
#endif
Expand Down

0 comments on commit d09b48a

Please sign in to comment.