diff --git a/src/Networking/ESP8266WiFi/WiFiInterface.cpp b/src/Networking/ESP8266WiFi/WiFiInterface.cpp index 005e71e58..c2a240faa 100644 --- a/src/Networking/ESP8266WiFi/WiFiInterface.cpp +++ b/src/Networking/ESP8266WiFi/WiFiInterface.cpp @@ -2234,7 +2234,7 @@ int32_t WiFiInterface::SendCommand(NetworkCommand cmd, SocketNumber socketNum, u __DMB(); // just in case this might help } - watcher.Check(reinterpret_cast(&bufferIn->data[bufferIn->hdr.response])); // check whether the watched memory has been corrupted. This is where we observe corruption. + watcher.Check(reinterpret_cast(&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