From 6832a3b5ba9ddf3b13c866e738955003deac2495 Mon Sep 17 00:00:00 2001 From: Kees Verruijt Date: Mon, 14 Oct 2024 17:19:39 +0200 Subject: [PATCH] Small HALO tweaks to controls --- src/navico/command.rs | 2 -- src/navico/settings.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/navico/command.rs b/src/navico/command.rs index 339411a..dae5871 100644 --- a/src/navico/command.rs +++ b/src/navico/command.rs @@ -1,6 +1,4 @@ use log::{debug, trace}; -use num_traits::ToPrimitive; -use std::cmp::{max, min}; use tokio::net::UdpSocket; use crate::radar::{RadarError, RadarInfo, SharedRadars}; diff --git a/src/navico/settings.rs b/src/navico/settings.rs index 22ad48d..94b86c5 100644 --- a/src/navico/settings.rs +++ b/src/navico/settings.rs @@ -152,7 +152,7 @@ pub fn update_when_model_known(controls: &mut Controls, model: Model, radar_info ControlType::Mode, Control::new_list( ControlType::Mode, - &["Custom", "Harbor", "Offshore", "Unknown", "Weather", "Bird"], + &["Custom", "Harbor", "Offshore", "Buoy", "Weather", "Bird"], ), ); controls.insert( @@ -212,7 +212,7 @@ pub fn update_when_model_known(controls: &mut Controls, model: Model, radar_info Control::new_list( ControlType::ScanSpeed, if model == Model::HALO { - &["Normal", "Medium", "", "Fast"] + &["Normal", "Medium", "Medium Plus", "Fast"] } else { &["Normal", "Fast"] },