mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-04-26 02:02:25 -05:00
FIX: Mutating linkSPI properly after refactor
This commit is contained in:
parent
ad29078090
commit
2129c77377
|
|
@ -837,16 +837,16 @@ class LinkWireless {
|
|||
profileStart();
|
||||
#endif
|
||||
|
||||
auto linkSPI = linkRawWireless.linkSPI;
|
||||
linkSPI._onSerial(true);
|
||||
auto linkSPI = &linkRawWireless.linkSPI;
|
||||
linkSPI->_onSerial(true);
|
||||
|
||||
bool hasNewData = linkSPI.getAsyncState() == LinkSPI::AsyncState::READY;
|
||||
bool hasNewData = linkSPI->getAsyncState() == LinkSPI::AsyncState::READY;
|
||||
if (hasNewData) {
|
||||
if (!linkRawWireless.acknowledge())
|
||||
return (void)abort(ACKNOWLEDGE_FAILED);
|
||||
} else
|
||||
return;
|
||||
u32 newData = linkSPI.getAsyncData();
|
||||
u32 newData = linkSPI->getAsyncData();
|
||||
|
||||
if (!isSessionActive())
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user