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:
authorPaweł Spychalski <pspychalski@gmail.com>2020-07-22 23:38:57 +0300
committerGitHub <noreply@github.com>2020-07-22 23:38:57 +0300
commitac1cac4beb73c7a4df828be293dc3b024f65bfb0 (patch)
treed157529a6cb2f23f2136ced72bad69838328ce24 /js
parent56a0ed0cefab08f5e5c7a4a776546c9d8f40535c (diff)
parent9f8261d0c54e3775b6fa8dbb13dd466e643054d5 (diff)
Merge pull request #1041 from iNavFlight/dzikuvx-io-expander-support
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 f4ff6a42..48cdfb70 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 PORT 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)
));