mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 17:33:19 +01:00
chore: update spec file version to 6.1.12
This commit is contained in:
@@ -170,9 +170,8 @@ impl CtrlBacklight {
|
|||||||
let mut buffer = [0; 32];
|
let mut buffer = [0; 32];
|
||||||
use futures_lite::StreamExt;
|
use futures_lite::StreamExt;
|
||||||
if let Ok(mut stream) = watch.into_event_stream(&mut buffer) {
|
if let Ok(mut stream) = watch.into_event_stream(&mut buffer) {
|
||||||
while (stream.next().await).is_some() {
|
loop {
|
||||||
// other processes cause "MODIFY" event and make this spin 100%, so sleep
|
let _ = stream.next().await;
|
||||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
|
||||||
|
|
||||||
let sync = backlights.config.lock().await.screenpad_sync_primary;
|
let sync = backlights.config.lock().await.screenpad_sync_primary;
|
||||||
if let Some(sync) = sync {
|
if let Some(sync) = sync {
|
||||||
@@ -200,6 +199,9 @@ impl CtrlBacklight {
|
|||||||
.await
|
.await
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// other processes cause "MODIFY" event and make this spin 100%, so sleep
|
||||||
|
tokio::time::sleep(Duration::from_millis(300)).await;
|
||||||
}
|
}
|
||||||
// watch
|
// watch
|
||||||
// .into_event_stream(&mut buffer)
|
// .into_event_stream(&mut buffer)
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define version 6.1.11
|
%define version 6.1.12
|
||||||
%define specrelease %{?dist}
|
%define specrelease %{?dist}
|
||||||
%define pkg_release 9%{specrelease}
|
%define pkg_release 9%{specrelease}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user