Fixed a stupid bug in setting registers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11460 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -77,7 +77,7 @@ acpi_button_control (void* cookie, uint32 op, void* arg, size_t len)
|
||||
case ~ACPI_BITREG_SLEEP_BUTTON_ENABLE:
|
||||
case ~ACPI_BITREG_POWER_BUTTON_STATUS:
|
||||
case ~ACPI_BITREG_SLEEP_BUTTON_STATUS:
|
||||
acpi->write_acpi_reg(op,*((uint32 *)(arg)));
|
||||
acpi->write_acpi_reg(~op,*((uint32 *)(arg)));
|
||||
break;
|
||||
case ACPI_BITREG_POWER_BUTTON_STATUS:
|
||||
case ACPI_BITREG_SLEEP_BUTTON_STATUS:
|
||||
|
||||
Reference in New Issue
Block a user