default on config load
This commit is contained in:
parent
6a26087a93
commit
b4a1bf1597
1 changed files with 5 additions and 0 deletions
|
@ -118,9 +118,14 @@ pub struct DacConfig{
|
||||||
// pub homography: Mat3,
|
// pub homography: Mat3,
|
||||||
pub source: StreamSource,
|
pub source: StreamSource,
|
||||||
pub filters: PointFilters,
|
pub filters: PointFilters,
|
||||||
|
#[serde(default = "default_layers_enabled")]
|
||||||
pub layers_enabled: u8,
|
pub layers_enabled: u8,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn default_layers_enabled() -> u8 {
|
||||||
|
0b1111_1111
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
|
||||||
pub enum StreamSource {
|
pub enum StreamSource {
|
||||||
Disabled,
|
Disabled,
|
||||||
|
|
Loading…
Reference in a new issue