File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ uint16_t PROTOLIST_callback()
476476{
477477 if (option != prev_option)
478478 {// Only send once
479- /* Type 0x11 Protocol list export via telemetry. Used by the protocol PROTO_PROTOLIST=0, the list entry is given by the option field.
479+ /* Type 0x11 Protocol list export via telemetry. Used by the protocol PROTO_PROTOLIST=0, the list entry is given by the Option field.
480480 length: variable
481481 data[0] = protocol number, 0xFF is an invalid list entry (Option value too large), Option == 0xFF -> number of protocols in the list
482482 data[1..n] = protocol name null terminated
@@ -517,10 +517,10 @@ uint16_t PROTOLIST_callback()
517517 // Flags
518518 uint8_t flags=0 ;
519519 #ifdef FAILSAFE_ENABLE
520- if (multi_protocols[multi_protocols_index ].failSafe )
520+ if (multi_protocols[option ].failSafe )
521521 flags |= 0x01 ; // Failsafe supported
522522 #endif
523- if (multi_protocols[multi_protocols_index ].chMap )
523+ if (multi_protocols[option ].chMap )
524524 flags |= 0x02 ; // Disable_ch_mapping supported
525525 Serial_write ( flags | (multi_protocols[option].optionType <<4 )); // flags && option type
526526 // Number of sub protocols
Original file line number Diff line number Diff line change @@ -1292,7 +1292,7 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
12921292 length: 22
12931293 data[0..21] = Config data
12941294
1295- Type 0x11 Protocol list export via telemetry. Used by the protocol PROTO_PROTOLIST=0, the list entry is given by the option field.
1295+ Type 0x11 Protocol list export via telemetry. Used by the protocol PROTO_PROTOLIST=0, the list entry is given by the Option field.
12961296 length: variable
12971297 data[0] = protocol number, 0xFF is an invalid list entry (Option value too large), Option == 0xFF -> number of protocols in the list
12981298 data[1..n] = protocol name null terminated
You can’t perform that action at this time.
0 commit comments