Skip to content

Commit

Permalink
oops i forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ragarnoy committed Nov 11, 2024
1 parent 76df144 commit 31480c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/detector/distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod results;

use crate::detector::distance::config::RadarDistanceConfig;
use crate::detector::distance::results::{DistanceSizes, ProcessDataError};
use crate::radar::{Radar, Ready};
use crate::radar::{Radar, RadarReady};
use crate::sensor::calibration::CalibrationResult;
use crate::sensor::error::SensorError;
use a121_sys::*;
Expand Down Expand Up @@ -48,7 +48,7 @@ where
DLY: DelayNs,
{
/// Reference to the radar system, configured and ready for operation.
pub radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>,
pub radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>,
inner: InnerRadarDistanceDetector,
/// Configuration for the radar distance detection.
pub config: RadarDistanceConfig,
Expand All @@ -61,7 +61,7 @@ where
DLY: DelayNs,
{
/// Constructs a new radar distance detector with default configuration.
pub fn new(radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>) -> Self {
pub fn new(radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>) -> Self {
let config = RadarDistanceConfig::default();
let inner = InnerRadarDistanceDetector::new(&config);
#[cfg(feature = "defmt")]
Expand All @@ -75,7 +75,7 @@ where

/// Constructs a new radar distance detector with the provided configuration.
pub fn with_config(
radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>,
radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>,
config: RadarDistanceConfig,
) -> Self {
let inner = InnerRadarDistanceDetector::new(&config);
Expand Down
8 changes: 4 additions & 4 deletions src/detector/presence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod results;

use crate::detector::presence::config::PresenceConfig;
use crate::detector::presence::results::{PresenceMetadata, PresenceResult, ProcessDataError};
use crate::radar::{Radar, Ready};
use crate::radar::{Radar, RadarReady};
use crate::sensor::calibration::CalibrationResult;
use crate::sensor::error::SensorError;
use a121_sys::*;
Expand Down Expand Up @@ -54,7 +54,7 @@ where
ENABLE: OutputPin,
DLY: DelayNs,
{
pub radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>,
pub radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>,
inner: InnerPresenceDetector,
pub config: PresenceConfig,
}
Expand All @@ -65,7 +65,7 @@ where
ENABLE: OutputPin,
DLY: DelayNs,
{
pub fn new(radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>) -> Self {
pub fn new(radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>) -> Self {
let config = PresenceConfig::default();
let inner = InnerPresenceDetector::new(&config);
Self {
Expand All @@ -76,7 +76,7 @@ where
}

pub fn with_config(
radar: &'radar mut Radar<Ready, SINT, ENABLE, DLY>,
radar: &'radar mut Radar<SINT, ENABLE, DLY, RadarReady>,
config: PresenceConfig,
) -> Self {
let inner = InnerPresenceDetector::new(&config);
Expand Down

0 comments on commit 31480c6

Please sign in to comment.