diff --git a/src/main.rs b/src/main.rs index 11c831b..12d8583 100644 --- a/src/main.rs +++ b/src/main.rs @@ -60,6 +60,7 @@ fn main() { info!("current capacity: {} Status: {}", capacity, status); + // This double check is necessary to don't perform the same action repeated times if status == "Charging" && last_notification_level != BatteryNotificationLevel::Charging { info!("now the battery is charging..."); info!(