mirror of
https://github.com/afska/gba-link-connection.git
synced 2026-10-01 21:36:53 -05:00
Simplifying LinkWireless::__onSerial() profiling code
This commit is contained in:
@@ -857,19 +857,13 @@ class LinkWireless {
|
||||
#endif
|
||||
|
||||
int status = linkRawWireless._onSerial(false);
|
||||
if (status <= -4)
|
||||
if (status <= -4) {
|
||||
return (void)abort(ACKNOWLEDGE_FAILED);
|
||||
else if (status <= 0) {
|
||||
#ifdef LINK_WIRELESS_PROFILING_ENABLED
|
||||
serialTime += profileStop();
|
||||
serialIRQs++;
|
||||
#endif
|
||||
return;
|
||||
} else if (status > 0) {
|
||||
auto result = linkRawWireless.getAsyncCommandResult();
|
||||
processAsyncCommand(result);
|
||||
}
|
||||
|
||||
auto result = linkRawWireless.getAsyncCommandResult();
|
||||
processAsyncCommand(result);
|
||||
|
||||
#ifdef LINK_WIRELESS_PROFILING_ENABLED
|
||||
serialTime += profileStop();
|
||||
serialIRQs++;
|
||||
|
||||
Reference in New Issue
Block a user