Skip to content

Commit

Permalink
Get timestamp from interrupt timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 18, 2024
1 parent 2ddd0f6 commit f63343c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VoodooRMI/Transports/I2C/RMII2C.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ void RMII2C::interruptOccured(OSObject *owner, IOInterruptEventSource *src, int
}

AbsoluteTime timestamp = mach_absolute_time();
if (src != nullptr) {
timestamp = src->getPimaryInterruptTimestamp();
if (interrupt_source != nullptr) {
timestamp = interrupt_source->getPimaryInterruptTimestamp();
}

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

0 comments on commit f63343c

Please sign in to comment.