diff --git a/src/trap/laser.rs b/src/trap/laser.rs index c769345..4753a76 100644 --- a/src/trap/laser.rs +++ b/src/trap/laser.rs @@ -122,6 +122,7 @@ pub struct DacConfig{ #[derive(Serialize, Deserialize, Clone, Debug, PartialEq)] pub enum StreamSource { + Disabled, CurrentLines, Rectangle, Grid, // lines @@ -131,12 +132,12 @@ pub enum StreamSource { } // usefull to create pull downs with an iterator -pub const STREAM_SOURCES: [StreamSource; 4] = [ +pub const STREAM_SOURCES: [StreamSource; 5] = [ + StreamSource::Disabled, StreamSource::CurrentLines, StreamSource::Rectangle, StreamSource::Grid, StreamSource::WorldGrid, - // StreamSource::Circle, // StreamSource::Spiral ]; @@ -302,6 +303,7 @@ impl StreamSource{ LaserPoints { points, space: CoordinateSpace::World } }, + StreamSource::Disabled => LaserPoints::default(), // empty set _ => LaserPoints::default(), // empty set } }