mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-14 03:23:15 +00:00
Protocol DM002: add 1 more TX ID/RF set
Total of 3 known TX IDs & RFs sets.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
//******************
|
||||
|
||||
Reference in New Issue
Block a user