mirror of
https://github.com/AskDavis/Getting-Started-With-ACPI.git
synced 2026-01-01 05:05:57 -08:00
Add missing Return values
Ref: https://github.com/dortania/bugtracker/issues/59
This commit is contained in:
@@ -19,13 +19,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
|
||||
Method (_STA, 0, NotSerialized)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
{
|
||||
Return (Zero) // This disables the device only in macOS
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F) // Re-enables it for Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,13 +38,14 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
|
||||
Method (_STA, 0, NotSerialized)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
{
|
||||
Return (Zero) // This disables the device only in macOS
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F) // Re-enables it for Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,14 +57,15 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
|
||||
Method (_STA, 0, NotSerialized)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
{
|
||||
Return (Zero) // This disables the device only in macOS
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F) // Re-enables it for Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -12,11 +12,12 @@ DefinitionBlock ("", "SSDT", 2, "DRTNIA", "RhubOff", 0x00001000)
|
||||
Method (_STA, 0, NotSerialized)
|
||||
{
|
||||
If (_OSI ("Darwin"))
|
||||
{
|
||||
Return (Zero) // This disables the device only in macOS
|
||||
{
|
||||
Return (Zero) // This disables the device only in macOS
|
||||
}
|
||||
Else
|
||||
{
|
||||
Return (0x0F) // Re-enables it for Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user