Skip to content

Commit

Permalink
Revert F01 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 committed Oct 23, 2024
1 parent 80a1b9b commit 7193d42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion VoodooRMI/Functions/F01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7193d42

Please sign in to comment.