From 7193d4251b4141b1c293b786ff60bc2b78e19dcf Mon Sep 17 00:00:00 2001 From: Avery Black Date: Tue, 22 Oct 2024 18:59:13 -0700 Subject: [PATCH] Revert F01 changes --- VoodooRMI/Functions/F01.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VoodooRMI/Functions/F01.cpp b/VoodooRMI/Functions/F01.cpp index b9ab659..bdf1e72 100644 --- a/VoodooRMI/Functions/F01.cpp +++ b/VoodooRMI/Functions/F01.cpp @@ -375,10 +375,14 @@ int F01::rmi_f01_resume() void F01::attention(AbsoluteTime time, UInt8 *data[], size_t *size) { + IOReturn error; UInt8 device_status = 0; - if (!getInputData(&device_status, sizeof(device_status), data, size)) + error = readByte(getDataAddr(), &device_status); + if (error) { + IOLogError("F01: Failed to read device status: %d", error); return; + } if (RMI_F01_STATUS_BOOTLOADER(device_status)) IOLogError("Device in bootloader mode, please update firmware");