Fix default fan curve buffer size

This commit is contained in:
Charles Peng
2023-08-22 15:08:30 +08:00
parent 5f1139f132
commit e6c59283c1

View File

@@ -254,7 +254,7 @@ public class AsusACPI
protected byte[] CallMethod(uint MethodID, byte[] args) protected byte[] CallMethod(uint MethodID, byte[] args)
{ {
byte[] acpiBuf = new byte[8 + args.Length]; byte[] acpiBuf = new byte[8 + args.Length];
byte[] outBuffer = new byte[20]; byte[] outBuffer = new byte[16];
BitConverter.GetBytes((uint)MethodID).CopyTo(acpiBuf, 0); BitConverter.GetBytes((uint)MethodID).CopyTo(acpiBuf, 0);
BitConverter.GetBytes((uint)args.Length).CopyTo(acpiBuf, 4); BitConverter.GetBytes((uint)args.Length).CopyTo(acpiBuf, 4);