0xe6 packet has no response
@@ -205,20 +205,20 @@ static void ICACHE_FLASH_ATTR web_rx_cb(void *arg, char *data, uint16_t len) {
espconn_send_string(&web_conn, resp);
espconn_disconnect(conn);
} else if (memcmp(data, "GET /client ", 12) == 0) {
- uint32_t recvData[0x11];
- spi_comm("\x00\x00\x00\x00\x40\xE6\x00\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
+ uint32_t recvData[1];
+ spi_comm("\x00\x00\x00\x00\x40\xE6\x00\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"client mode request sent over SPI");
espconn_disconnect(conn);
} else if (memcmp(data, "GET /cdp ", 9) == 0) {
- uint32_t recvData[0x11];
- spi_comm("\x00\x00\x00\x00\x40\xE6\x01\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
+ uint32_t recvData[1];
+ spi_comm("\x00\x00\x00\x00\x40\xE6\x01\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"CDP mode request sent over SPI");
espconn_disconnect(conn);
} else if (memcmp(data, "GET /dcp ", 9) == 0) {
- uint32_t recvData[0x11];
- spi_comm("\x00\x00\x00\x00\x40\xE6\x02\x00\x00\x00\x40\x00", 0xC, recvData, 0x40);
+ uint32_t recvData[1];
+ spi_comm("\x00\x00\x00\x00\x40\xE6\x02\x00\x00\x00\x40\x00", 0xC, recvData, 0);
espconn_send_string(&web_conn, "HTTP/1.0 200 OK\nContent-Type: text/html\n\n"
"DCP mode request sent over SPI");
espconn_disconnect(conn);
