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