Add missing Return values

Ref: https://github.com/dortania/bugtracker/issues/59
This commit is contained in:
Mykola Grymalyuk
2020-08-16 19:37:08 -06:00
parent 85705f0699
commit 6f45661468
3 changed files with 13 additions and 9 deletions

Binary file not shown.

View File

@@ -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
}
}
}
}
}
}
}

View File

@@ -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
}
}
}