From 20c903113dbef4caa1aafe9754037070e3733594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sun, 20 Mar 2016 11:41:00 +0100 Subject: [PATCH] Add signature, prologue, epilogue, brandId properties and make hardwareId numeric. --- model/serializeConfig.js | 2 +- model/uhk-config.json | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/model/serializeConfig.js b/model/serializeConfig.js index 2537106c..08b12d04 100755 --- a/model/serializeConfig.js +++ b/model/serializeConfig.js @@ -9,7 +9,7 @@ var writer = BufferWriter(buffer); var uhkConfig = JSON.parse(fs.readFileSync('uhk-config.json')); var keyActions = uhkConfig.keymaps[0].layers[0].modules[0].keyActions; -console.log(keyActions) + var ARRAY_LAST_ELEMENT_ID = 0; var KEY_ACTION_ID_KEYSTROKE_SCANCODE_FIRST = 1; diff --git a/model/uhk-config.json b/model/uhk-config.json index f16aacf0..0dd1344c 100644 --- a/model/uhk-config.json +++ b/model/uhk-config.json @@ -1,5 +1,8 @@ { - "hardwareId": "UHK60", + "signature": "UHK" + "prologue": 1234678 + "hardwareId": 0, + "brandId": 0, "dataModelVersion": 0, "moduleConfigurations": [ { @@ -146,5 +149,6 @@ } ] } - ] + ], + "epilogue": 1234678 } \ No newline at end of file