Bind function on channel 16

Toggling channel 16 (-100%->+100%->-100%) will execute a bind only if
the loaded protocol is an autobind protocol or autobind is set AND
throttle is low (below -95%).
This commit is contained in:
pascallanger
2017-01-02 17:04:50 +01:00
parent 6a792ce6a0
commit 0d0acb9d10
3 changed files with 28 additions and 9 deletions

View File

@@ -265,6 +265,11 @@ enum MultiPacketTypes {
#define INPUT_SIGNAL_on protocol_flags2 |= _BV(5)
#define IS_INPUT_SIGNAL_on ( ( protocol_flags2 & _BV(5) ) !=0 )
#define IS_INPUT_SIGNAL_off ( ( protocol_flags2 & _BV(5) ) ==0 )
//CH16
#define CH16_PREV_off protocol_flags2 &= ~_BV(6)
#define CH16_PREV_on protocol_flags2 |= _BV(6)
#define IS_CH16_PREV_on ( ( protocol_flags2 & _BV(6) ) !=0 )
#define IS_CH16_PREV_off ( ( protocol_flags2 & _BV(6) ) ==0 )
//********************
//*** Blink timing ***