diff options
-rw-r--r-- | driver/touchpad_st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c index d768502674..9e6b08f909 100644 --- a/driver/touchpad_st.c +++ b/driver/touchpad_st.c @@ -593,7 +593,7 @@ static void dump_memory(void) spi_transaction(SPI, cmd, sizeof(cmd), (uint8_t *)&rx_buf, rx_len); - for (i = 0; i < rx_len; i += 32) { + for (i = 0; i < rx_len - ST_TP_DUMMY_BYTE; i += 32) { CPRINTF("%.4h %.4h %.4h %.4h %.4h %.4h %.4h %.4h\n", rx_buf.bytes + i + 4 * 0, rx_buf.bytes + i + 4 * 1, |