From b45f2d198fd05ce4055c5b3ca8e879ca1d1eca69 Mon Sep 17 00:00:00 2001 From: grabbit Date: Sat, 5 Apr 2025 23:52:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=A0=91=E8=8E=93=E6=B4=BE?= =?UTF-8?q?=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gps/controller.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gps/controller.rs b/src/gps/controller.rs index 7882d51..e86ec85 100644 --- a/src/gps/controller.rs +++ b/src/gps/controller.rs @@ -54,7 +54,7 @@ pub struct GpsController { #[cfg(feature = "gpio")] pps_pin: Option, /// Placeholder for non-Linux platforms - #[cfg(not(target_os = "linux"))] + #[cfg(not(feature = "gpio"))] pps_pin: Option<()>, /// Last known position position: Arc>, @@ -93,7 +93,6 @@ impl GpsController { Ok(Self { config: gps_config, port: None, - #[cfg(feature = "gpio")] pps_pin: None, position: Arc::new(Mutex::new(initial_position)), sync_status: Arc::new(Mutex::new(SyncStatus::NoSync)),