Var reinitialization fix by antoineok.

dataOutBufferCurrIndex is used by GET_CHECKSUM, but it never gets reset if you trigger the transfer again.

Fix: reinitialize it on ::setup()
This commit is contained in:
Philippe Symons
2026-09-07 16:39:52 +02:00
parent c24bb25b34
commit 74babb10fc

View File

@@ -119,6 +119,7 @@ void LinkConnection::setup(const u16 *debug_charset)
link_cable_memory_section_index = 0;
link_cable_array_index = 0;
writeBufferOffset = 0;
dataOutBufferCurrIndex = 0;
linkSPI->activate(LinkSPI::Mode::MASTER_256KBPS);
linkSPI->setWaitModeActive(false);