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