linux-rust: show battery info from LE in tray

should probably have an indication when not connected
This commit is contained in:
Kavish Devar
2025-11-10 13:32:47 +05:30
parent a007d9cd80
commit 26cee5c8a5
3 changed files with 46 additions and 43 deletions
+3 -3
View File
@@ -59,10 +59,10 @@ async fn main() -> bluer::Result<()> {
let adapter = session.default_adapter().await?;
adapter.set_powered(true).await?;
// Start LE monitor for Apple devices
tokio::spawn(async {
let le_tray_clone = tray_handle.clone();
tokio::spawn(async move {
info!("Starting LE monitor...");
if let Err(e) = start_le_monitor().await {
if let Err(e) = start_le_monitor(le_tray_clone).await {
log::error!("LE monitor error: {}", e);
}
});