mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-19 14:25:13 +03:00
Use new special label info from msp to tag led pin.
This commit is contained in:
parent
442859e55b
commit
16b212e244
3 changed files with 12 additions and 3 deletions
|
@ -1420,13 +1420,15 @@ var mspHelper = (function () {
|
|||
*/
|
||||
case MSPCodes.MSPV2_INAV_OUTPUT_MAPPING_EXT2:
|
||||
FC.OUTPUT_MAPPING.flush();
|
||||
for (let i = 0; i < data.byteLength; i += 5) {
|
||||
for (let i = 0; i < data.byteLength; i += 6) {
|
||||
let timerId = data.getUint8(i);
|
||||
let usageFlags = data.getUint32(i + 1, true);
|
||||
let specialLabels = data.getUint8(i + 5);
|
||||
FC.OUTPUT_MAPPING.put(
|
||||
{
|
||||
'timerId': timerId,
|
||||
'usageFlags': usageFlags
|
||||
'usageFlags': usageFlags,
|
||||
'specialLabels': specialLabels
|
||||
});
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue