chore: update spec file version to 6.1.12

This commit is contained in:
Luke Jones
2025-04-06 13:26:53 +12:00
parent 59aab24a4a
commit 685345d656
2 changed files with 6 additions and 4 deletions

View File

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

View File

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