1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-23 21:40:57 +01:00

add complete default for config json

This commit is contained in:
4yn 2022-03-23 01:55:20 +08:00
parent 1802ca12fd
commit d24bd93084

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()
}