Comparing version 9.0.4 to 10.0.0
37
index.js
@@ -63,4 +63,4 @@ const events = require('events'); | ||
this.minimumSupportedBuildNumber = 170603; | ||
this.supportedSettingsVersion = 9; | ||
this.minimumSupportedBuildNumber = 170624; | ||
this.supportedSettingsVersion = 10; | ||
@@ -466,2 +466,11 @@ this.vendorId = 0x0416; | ||
.word8(config.MediumSkinVWLine1 + (config.MediumSkinVWLine1Puff ? 0x80 : 0)) | ||
.word8(config.MediumSkinVWLine2 + (config.MediumSkinVWLine2Puff ? 0x80 : 0)) | ||
.word8(config.MediumSkinVWLine3 + (config.MediumSkinVWLine2Puff ? 0x80 : 0)) | ||
.word8(config.MediumSkinTCLine1 + (config.MediumSkinTCLine1Puff ? 0x80 : 0)) | ||
.word8(config.MediumSkinTCLine2 + (config.MediumSkinTCLine2Puff ? 0x80 : 0)) | ||
.word8(config.MediumSkinTCLine3 + (config.MediumSkinTCLine2Puff ? 0x80 : 0)) | ||
.word8(Math.round(config.Brightness * 2.55)) | ||
@@ -588,2 +597,10 @@ .word8(config.DimTimeout) | ||
.word8u('MediumSkinVWLine1') | ||
.word8u('MediumSkinVWLine2') | ||
.word8u('MediumSkinVWLine3') | ||
.word8u('MediumSkinTCLine1') | ||
.word8u('MediumSkinTCLine2') | ||
.word8u('MediumSkinTCLine3') | ||
.word8u('Brightness') | ||
@@ -700,2 +717,16 @@ .word8u('DimTimeout') | ||
data.MediumSkinVWLine1Puff = Boolean(data.MediumSkinVWLine1 & 0x80); | ||
data.MediumSkinVWLine1 = data.MediumSkinVWLine1 & 0x7f; | ||
data.MediumSkinVWLine2Puff = Boolean(data.MediumSkinVWLine2 & 0x80); | ||
data.MediumSkinVWLine2 = data.MediumSkinVWLine2 & 0x7f; | ||
data.MediumSkinVWLine3Puff = Boolean(data.MediumSkinVWLine3 & 0x80); | ||
data.MediumSkinVWLine3 = data.MediumSkinVWLine3 & 0x7f; | ||
data.MediumSkinTCLine1Puff = Boolean(data.MediumSkinTCLine1 & 0x80); | ||
data.MediumSkinTCLine1 = data.MediumSkinTCLine1 & 0x7f; | ||
data.MediumSkinTCLine2Puff = Boolean(data.MediumSkinTCLine2 & 0x80); | ||
data.MediumSkinTCLine2 = data.MediumSkinTCLine2 & 0x7f; | ||
data.MediumSkinTCLine3Puff = Boolean(data.MediumSkinTCLine3 & 0x80); | ||
data.MediumSkinTCLine3 = data.MediumSkinTCLine3 & 0x7f; | ||
data.Brightness = Math.round(data.Brightness / 2.55); | ||
@@ -1014,3 +1045,3 @@ data.PuffScreenDelay = Math.round(data.PuffScreenDelay / 10); | ||
bin = Buffer.concat([bin, Buffer.from(Array.apply(null, Array(58)).map(Number.prototype.valueOf, 0))]); | ||
bin = Buffer.concat([bin, Buffer.from(Array.apply(null, Array(this.configurationLength - bin.length)).map(Number.prototype.valueOf, 0))]); | ||
@@ -1017,0 +1048,0 @@ //this.saveDump('b.bin', bin); |
{ | ||
"name": "arcticfox", | ||
"version": "9.0.4", | ||
"version": "10.0.0", | ||
"description": "Module that abstracts the HID communication with the ArcticFox firmware", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99674
6
2126