Fix Multi_status bind flag when invalid protocol selected

This commit is contained in:
pascallanger 2017-02-08 22:42:39 +01:00
parent 68e9948493
commit 219beb4a0e
2 changed files with 6 additions and 4 deletions

View File

@ -334,7 +334,7 @@ static void __attribute__((unused)) Q303_initialize_txid()
// not thoroughly figured out rx_tx_addr/channels mapping yet
// for now 5 msb of rx_tx_addr[1] must be cleared
rx_tx_addr[1] &= 7;
offset = 6+((rx_tx_addr[1] & 7)*3);
offset = 6+(rx_tx_addr[1]*3);
hopping_frequency[0] = 0x14; // works only if rx_tx_addr[1] < 8
for(i=1; i<16; i++)
{

View File

@ -70,9 +70,11 @@ static void multi_send_status()
if (mode_select==MODE_SERIAL)
flags |= 0x02;
if (remote_callback != 0)
flags |= 0x04;
if (!IS_BIND_DONE_on)
flags |= 0x08;
{
flags |= 0x04;
if (!IS_BIND_DONE_on)
flags |= 0x08;
}
Serial_write(flags);
// Version number example: 1.1.6.1