mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-10-27 18:00:53 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user