add complete default for config json

pull/13/head
4yn 2022-03-23 01:55:20 +08:00
parent 1802ca12fd
commit d24bd93084
1 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,7 @@ impl Config {
fn default() -> Self { fn default() -> Self {
Self::from_str( Self::from_str(
r#"{ r##"{
"deviceMode": "none", "deviceMode": "none",
"outputMode": "none", "outputMode": "none",
"ledMode": "none", "ledMode": "none",
@ -39,10 +39,12 @@ impl Config {
"outputPolling": "100", "outputPolling": "100",
"outputWebsocketUrl": "localhost:3000", "outputWebsocketUrl": "localhost:3000",
"ledFaster": false, "ledFaster": false,
"ledColorActive": "#ff00ff",
"ledColorInactive": "#ffff00",
"ledSensitivity": 20, "ledSensitivity": 20,
"ledWebsocketUrl": "localhost:3001", "ledWebsocketUrl": "localhost:3001",
"ledSerialPort": "COM5" "ledSerialPort": "COM5"
}"#, }"##,
) )
.unwrap() .unwrap()
} }