1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-24 05:50:12 +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 { 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()
} }