From f63343c70fbe8212e68b029c89ba407390834256 Mon Sep 17 00:00:00 2001 From: Avery Black Date: Fri, 18 Oct 2024 12:27:51 -0700 Subject: [PATCH] Get timestamp from interrupt timestamp --- VoodooRMI/Transports/I2C/RMII2C.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);