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:
@@ -6,6 +6,10 @@ function getUint32(buffer, offset) {
|
||||
return (buffer[offset]) + (buffer[offset+1] << 8) + (buffer[offset+2] << 16) + (buffer[offset+3] << 24);
|
||||
}
|
||||
|
||||
function getUint16(buffer, offset) {
|
||||
return (buffer[offset]) + (buffer[offset+1] << 8);
|
||||
}
|
||||
|
||||
function getDebugInfo() {
|
||||
const payload = new Buffer([uhk.usbCommands.getDebugInfo]);
|
||||
console.log('Sending ', uhk.bufferToString(payload));
|
||||
|
||||
Reference in New Issue
Block a user