Add a number of properties to the user config that are related to mou… (#501)

* Add a number of properties to the user config that are related to mouse movement, LED brightness, data model versioning, and double tap switch layer timeout. Update firmware related version numbers.

* use default config if parse loaded config from device failed

* add asserts to the new user config fields

* separate user and hardware config parser

* fix indent

* fix user-config size read
This commit is contained in:
László Monda
2017-12-02 23:55:43 +01:00
committed by GitHub
parent 58b1b9b1dc
commit 7537e5b823
7 changed files with 200 additions and 46 deletions
@@ -1,6 +1,20 @@
{
"dataModelVersion": 4,
"dataModelMajorVersion": 3,
"dataModelMinorVersion": 0,
"dataModelPatchVersion": 0,
"deviceName": "My UHK",
"doubleTapSwitchLayerTimeout": 300,
"keyBacklightBrightness": 255,
"mouseMoveInitialSpeed": 5,
"mouseMoveAcceleration": 35,
"mouseMoveDeceleratedSpeed": 10,
"mouseMoveBaseSpeed": 40,
"mouseMoveAcceleratedSpeed": 80,
"mouseScrollInitialSpeed": 20,
"mouseScrollAcceleration": 20,
"mouseScrollDeceleratedSpeed": 20,
"mouseScrollBaseSpeed": 20,
"mouseScrollAcceleratedSpeed": 50,
"moduleConfigurations": [
{
"id": 1,
@@ -7134,4 +7148,4 @@
]
}
]
}
}