PowerStatus: call the APM syscall with the correct struct.
This commit is contained in:
parent
b68d872bdb
commit
e04d859b34
@ -30,9 +30,9 @@ APMDriverInterface::Connect()
|
|||||||
status_t status = _kern_generic_syscall(APM_SYSCALLS, B_SYSCALL_INFO,
|
status_t status = _kern_generic_syscall(APM_SYSCALLS, B_SYSCALL_INFO,
|
||||||
&version, sizeof(version));
|
&version, sizeof(version));
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
battery_info info;
|
apm_battery_info info;
|
||||||
status = _kern_generic_syscall(APM_SYSCALLS, APM_GET_BATTERY_INFO,
|
status = _kern_generic_syscall(APM_SYSCALLS, APM_GET_BATTERY_INFO,
|
||||||
&info, sizeof(battery_info));
|
&info, sizeof(apm_battery_info));
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
Loading…
Reference in New Issue
Block a user