diff --git a/VoodooRMI/Transports/I2C/RMII2C.cpp b/VoodooRMI/Transports/I2C/RMII2C.cpp index 6a0129c..b78555d 100644 --- a/VoodooRMI/Transports/I2C/RMII2C.cpp +++ b/VoodooRMI/Transports/I2C/RMII2C.cpp @@ -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);