queclink-parser 1.9.8 → 1.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ #### 1.9.9 (2024-10-04)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **input:** fix gv57cg input bits ([35d4199e](https://github.com/jaayesta/queclink-parser/commit/35d4199e1ff7236cdf48ccf8ad965c08df6599a7))
6
+
1
7
  #### 1.9.8 (2024-10-04)
2
8
 
3
9
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "queclink-parser",
3
- "version": "1.9.8",
3
+ "version": "1.9.9",
4
4
  "description": "Parse raw data from Queclink devices",
5
5
  "main": "src",
6
6
  "scripts": {
package/src/gv57cg.js CHANGED
@@ -221,12 +221,12 @@ const parse = raw => {
221
221
  utils.nHexDigit(
222
222
  utils.hex2bin(parsedData[index + 6].substring(2, 4)),
223
223
  8
224
- )[7] === '1',
224
+ )[6] === '1',
225
225
  '1':
226
226
  utils.nHexDigit(
227
227
  utils.hex2bin(parsedData[index + 6].substring(2, 4)),
228
228
  8
229
- )[6] === '1'
229
+ )[7] === '1'
230
230
  },
231
231
  output: {
232
232
  '3':
@@ -594,8 +594,8 @@ const parse = raw => {
594
594
  raw: `${parsedData[21]}${parsedData[22]}`,
595
595
  sos: false,
596
596
  input: {
597
- '2': utils.nHexDigit(utils.hex2bin(parsedData[21]), 8)[7] === '1',
598
- '1': utils.nHexDigit(utils.hex2bin(parsedData[21]), 8)[6] === '1'
597
+ '2': utils.nHexDigit(utils.hex2bin(parsedData[21]), 8)[6] === '1',
598
+ '1': utils.nHexDigit(utils.hex2bin(parsedData[21]), 8)[7] === '1'
599
599
  },
600
600
  output: {
601
601
  '3': utils.nHexDigit(utils.hex2bin(parsedData[22]), 8)[5] === '1',
@@ -1117,12 +1117,12 @@ const parse = raw => {
1117
1117
  utils.nHexDigit(
1118
1118
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1119
1119
  8
1120
- )[7] === '1',
1120
+ )[6] === '1',
1121
1121
  '1':
1122
1122
  utils.nHexDigit(
1123
1123
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1124
1124
  8
1125
- )[6] === '1'
1125
+ )[7] === '1'
1126
1126
  },
1127
1127
  output: {
1128
1128
  '3':
@@ -1764,12 +1764,12 @@ const parse = raw => {
1764
1764
  utils.nHexDigit(
1765
1765
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1766
1766
  8
1767
- )[7] === '1',
1767
+ )[6] === '1',
1768
1768
  '1':
1769
1769
  utils.nHexDigit(
1770
1770
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1771
1771
  8
1772
- )[6] === '1'
1772
+ )[7] === '1'
1773
1773
  },
1774
1774
  output: {
1775
1775
  '3':
@@ -1990,12 +1990,12 @@ const parse = raw => {
1990
1990
  utils.nHexDigit(
1991
1991
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1992
1992
  8
1993
- )[7] === '1',
1993
+ )[6] === '1',
1994
1994
  '1':
1995
1995
  utils.nHexDigit(
1996
1996
  utils.hex2bin(parsedData[index + 1].substring(2, 4)),
1997
1997
  8
1998
- )[6] === '1'
1998
+ )[7] === '1'
1999
1999
  },
2000
2000
  output: {
2001
2001
  '3':