Hide Proto Scanner

This commit is contained in:
Pascal Langer 2020-04-21 12:15:53 +02:00
parent 53c0637a85
commit c1c5f9fe3a
3 changed files with 6 additions and 3 deletions

View File

@ -298,7 +298,7 @@ const mm_protocol_definition multi_protocols[] = {
{PROTO_REDPINE, STR_REDPINE, 2, STR_SUBTYPE_REDPINE, OPTION_RFTUNE }, {PROTO_REDPINE, STR_REDPINE, 2, STR_SUBTYPE_REDPINE, OPTION_RFTUNE },
#endif #endif
#if defined(SCANNER_CC2500_INO) #if defined(SCANNER_CC2500_INO)
{PROTO_SCANNER, STR_SCANNER, 0, NO_SUBTYPE, OPTION_NONE }, // {PROTO_SCANNER, STR_SCANNER, 0, NO_SUBTYPE, OPTION_NONE },
#endif #endif
#if defined(SFHSS_CC2500_INO) #if defined(SFHSS_CC2500_INO)
{PROTO_SFHSS, STR_SFHSS, 0, NO_SUBTYPE, OPTION_RFTUNE }, {PROTO_SFHSS, STR_SFHSS, 0, NO_SUBTYPE, OPTION_RFTUNE },

View File

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

View File

@ -141,7 +141,10 @@ static void multi_send_status()
flags |= 0x04; flags |= 0x04;
#ifdef MULTI_NAMES #ifdef MULTI_NAMES
if(multi_protocols_index == 0xFF) if(multi_protocols_index == 0xFF)
flags &= ~0x04; //Invalid protocol {
if(protocol!=PROTO_SCANNER)
flags &= ~0x04; //Invalid protocol
}
else if(sub_protocol&0x07) else if(sub_protocol&0x07)
{ {
uint8_t nbr=multi_protocols[multi_protocols_index].nbrSubProto; uint8_t nbr=multi_protocols[multi_protocols_index].nbrSubProto;