sp_cmd_brightness_global_get returns value
This commit is contained in:
parent
c9d2479f5e
commit
01b3169020
5 changed files with 161 additions and 29 deletions
|
@ -52,6 +52,6 @@ pub unsafe extern "C" fn sp_cmd_brightness_global_set(
|
|||
#[no_mangle]
|
||||
pub unsafe extern "C" fn sp_cmd_brightness_global_get(
|
||||
mut command: NonNull<GlobalBrightnessCommand>,
|
||||
) -> *mut Brightness {
|
||||
unsafe { &mut command.as_mut().brightness }
|
||||
) -> Brightness {
|
||||
unsafe { command.as_mut().brightness }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue