mirror of
https://github.com/GearsProgress/Poke_Transporter_GB.git
synced 2026-08-22 08:45:16 -05:00
Reworking single byte sending
This commit is contained in:
@@ -400,6 +400,24 @@ ConnectionState prevConState;
|
||||
|
||||
void handshake()
|
||||
{
|
||||
if (g_debug_options.print_link_data && key_hit(KEY_SELECT))
|
||||
{
|
||||
currLinkState->irq_enabled = false;
|
||||
}
|
||||
|
||||
else if (g_debug_options.print_link_data && key_hit(KEY_START))
|
||||
{
|
||||
currLinkState->irq_enabled = true;
|
||||
}
|
||||
|
||||
if (!currLinkState->irq_enabled)
|
||||
{
|
||||
if (!(g_debug_options.print_link_data && key_hit(KEY_A)))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
prevConState = currLinkState->conState; // The con state can change in handleIncomingByte - we want to display what it was before running that function
|
||||
|
||||
int timeout_frames = 10;
|
||||
|
||||
Reference in New Issue
Block a user