Protocol DM002: add 1 more TX ID/RF set

Total of 3 known TX IDs & RFs sets.
This commit is contained in:
Pascal Langer
2017-11-28 17:24:24 +01:00
parent 5a342cf8e6
commit cc83177542
3 changed files with 16 additions and 11 deletions

View File

@@ -132,16 +132,21 @@ uint16_t DM002_callback()
static void __attribute__((unused)) DM002_initialize_txid()
{
// Only 2 IDs/RFs are available, RX_NUM is used to switch between them
if(rx_tx_addr[3]&1)
// Only 3 IDs/RFs are available, RX_NUM is used to switch between them
switch(rx_tx_addr[3]%3)
{
memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4);
memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5);
}
else
{
memcpy(hopping_frequency,(uint8_t *)"\x35\x39\x3B\x3D",4);
memcpy(rx_tx_addr,(uint8_t *)"\xAC\xA1\x00\x00\xD5",5);
case 0:
memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4);
memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5);
break;
case 1:
memcpy(hopping_frequency,(uint8_t *)"\x35\x39\x3B\x3D",4);
memcpy(rx_tx_addr,(uint8_t *)"\xAC\xA1\x00\x00\xD5",5);
break;
case 2:
memcpy(hopping_frequency,(uint8_t *)"\x32\x37\x41\x46",4);
memcpy(rx_tx_addr,(uint8_t *)"\x92\x45\x01\x00\xD5",5);
break;
}
}

View File

@@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_REVISION 6
#define VERSION_PATCH_LEVEL 32
#define VERSION_PATCH_LEVEL 33
//******************
// Protocols
//******************