Protocol Pelikan: hop freq change with RX_num

This commit is contained in:
pascallanger 2020-01-15 16:28:03 +01:00
parent c6e5d00a2b
commit e18d8868d2
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 61
#define VERSION_PATCH_LEVEL 62
//******************
// Protocols

View File

@ -182,7 +182,8 @@ static uint8_t pelikan_add(uint8_t pfrq,uint8_t a, uint8_t limit)
static void __attribute__((unused)) pelikan_init_hop()
{
#define PELIKAN_HOP_LIMIT 70
rx_tx_addr[0]= 0;
rx_tx_addr[0] = 0;
rx_tx_addr[1]+= RX_num;
uint8_t high = (rx_tx_addr[1]>>4) % 3; // 0..2
uint8_t low = rx_tx_addr[1] & 0x0F;
if(high==2)