WAIT_FOR_BIND feature

This feature will not activate the selected protocol unless a bind is
requested using bind from channel or the GUI "Bind" button. It is only
enabled if bind from channel and autobind are set since I think they are
working well together.
The goal is to prevent binding other people's model when powering up the
TX, changing model or scanning through protocols.
There is a new blinking pattern associated to it as well as a new status
"Waiting for bind".
This feature is enabled by default in _config.h .
This commit is contained in:
pascallanger
2017-02-10 17:37:58 +01:00
parent 72052925a6
commit 0c5fae01b5
5 changed files with 340 additions and 287 deletions

View File

@@ -72,8 +72,11 @@ static void multi_send_status()
if (remote_callback != 0)
{
flags |= 0x04;
if (!IS_BIND_DONE_on)
flags |= 0x08;
if (IS_WAIT_BIND_on)
flags |= 0x10;
else
if (!IS_BIND_DONE_on)
flags |= 0x08;
}
Serial_write(flags);