sp_cmd_brightness_global_get returns value

This commit is contained in:
Vinzenz Schroeter 2025-05-24 13:50:01 +02:00
parent c9d2479f5e
commit 01b3169020
5 changed files with 161 additions and 29 deletions

View file

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