Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-07-20 21:20:06 +0300
committerPawel Spychalski (DzikuVx) <pspychalski@gmail.com>2020-07-20 21:20:06 +0300
commitedb7648eee21e5a4dedf7310c494a49f2d12578d (patch)
tree4f5ac45cae36ff7ff4203f24e6f9896a35bce155 /js
parenta711632fd2c46d08555c60ff01467deca04c360f (diff)
Support for I2C IO Expander board
Diffstat (limited to 'js')
-rw-r--r--js/fc.js5
-rw-r--r--js/msp/MSPHelper.js8
2 files changed, 9 insertions, 4 deletions
diff --git a/js/fc.js b/js/fc.js
index 65327feb..2a6b79e5 100644
--- a/js/fc.js
+++ b/js/fc.js
@@ -1125,6 +1125,11 @@ var FC = {
name: "GVAR DEC",
hasOperand: [true, true],
output: "none"
+ },
+ 128: {
+ name: "IO SET",
+ hasOperand: [true, true],
+ output: "none"
}
}
},
diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js
index b1ba40c8..e9a3b8fe 100644
--- a/js/msp/MSPHelper.js
+++ b/js/msp/MSPHelper.js
@@ -500,11 +500,11 @@ var mspHelper = (function (gui) {
for (i = 0; i < data.byteLength; i += 14) {
LOGIC_CONDITIONS.put(new LogicCondition(
data.getInt8(i),
- data.getInt8(i + 1),
- data.getInt8(i + 2),
- data.getInt8(i + 3),
+ data.getUint8(i + 1),
+ data.getUint8(i + 2),
+ data.getUint8(i + 3),
data.getInt32(i + 4, true),
- data.getInt8(i + 8),
+ data.getUint8(i + 8),
data.getInt32(i + 9, true),
data.getInt8(i + 13)
));