fix:树莓派检测
This commit is contained in:
parent
ecc90b6fd6
commit
b45f2d198f
@ -54,7 +54,7 @@ pub struct GpsController {
|
|||||||
#[cfg(feature = "gpio")]
|
#[cfg(feature = "gpio")]
|
||||||
pps_pin: Option<InputPin>,
|
pps_pin: Option<InputPin>,
|
||||||
/// Placeholder for non-Linux platforms
|
/// Placeholder for non-Linux platforms
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(feature = "gpio"))]
|
||||||
pps_pin: Option<()>,
|
pps_pin: Option<()>,
|
||||||
/// Last known position
|
/// Last known position
|
||||||
position: Arc<Mutex<GeoPosition>>,
|
position: Arc<Mutex<GeoPosition>>,
|
||||||
@ -93,7 +93,6 @@ impl GpsController {
|
|||||||
Ok(Self {
|
Ok(Self {
|
||||||
config: gps_config,
|
config: gps_config,
|
||||||
port: None,
|
port: None,
|
||||||
#[cfg(feature = "gpio")]
|
|
||||||
pps_pin: None,
|
pps_pin: None,
|
||||||
position: Arc::new(Mutex::new(initial_position)),
|
position: Arc::new(Mutex::new(initial_position)),
|
||||||
sync_status: Arc::new(Mutex::new(SyncStatus::NoSync)),
|
sync_status: Arc::new(Mutex::new(SyncStatus::NoSync)),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user