Skip to content

Commit

Permalink
Use I2C interrupt timestamp if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 18, 2024
1 parent afa2840 commit 2ddd0f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion VoodooRMI/Transports/I2C/RMII2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,12 @@ void RMII2C::interruptOccured(OSObject *owner, IOInterruptEventSource *src, int
return;
}

handleAttention(mach_absolute_time(), &inputBuffer[3], size - 3);
AbsoluteTime timestamp = mach_absolute_time();
if (src != nullptr) {
timestamp = src->getPimaryInterruptTimestamp();
}

handleAttention(timestamp, &inputBuffer[3], size - 3);
}

void RMII2C::simulateInterrupt(OSObject* owner, IOTimerEventSource* timer) {
Expand Down

0 comments on commit 2ddd0f6

Please sign in to comment.