Allow processing of Who-Has when DCC initiation is disabled

This commit is contained in:
Steve Karg
2023-10-31 10:55:08 -05:00
parent 3f1d6fe3a9
commit 4991bb6156
3 changed files with 9 additions and 6 deletions
+1
View File
@@ -143,6 +143,7 @@ static bool apdu_unconfirmed_dcc_disabled(uint8_t service_choice)
/* WhoIs will be processed and I-Am initiated as response. */ /* WhoIs will be processed and I-Am initiated as response. */
switch (service_choice) { switch (service_choice) {
case SERVICE_UNCONFIRMED_WHO_IS: case SERVICE_UNCONFIRMED_WHO_IS:
case SERVICE_UNCONFIRMED_WHO_HAS:
break; break;
default: default:
status = true; status = true;
+1
View File
@@ -143,6 +143,7 @@ static bool apdu_unconfirmed_dcc_disabled(uint8_t service_choice)
/* WhoIs will be processed and I-Am initiated as response. */ /* WhoIs will be processed and I-Am initiated as response. */
switch (service_choice) { switch (service_choice) {
case SERVICE_UNCONFIRMED_WHO_IS: case SERVICE_UNCONFIRMED_WHO_IS:
case SERVICE_UNCONFIRMED_WHO_HAS:
break; break;
default: default:
status = true; status = true;
+2 -1
View File
@@ -531,9 +531,10 @@ static bool apdu_unconfirmed_dcc_disabled(uint8_t service_choice)
can be processed in this state */ can be processed in this state */
status = true; status = true;
} else if (dcc_communication_initiation_disabled()) { } else if (dcc_communication_initiation_disabled()) {
/* WhoIs will be processed and I-Am initiated as response. */ /* WhoIs & WhoHas will be processed */
switch (service_choice) { switch (service_choice) {
case SERVICE_UNCONFIRMED_WHO_IS: case SERVICE_UNCONFIRMED_WHO_IS:
case SERVICE_UNCONFIRMED_WHO_HAS:
break; break;
default: default:
status = true; status = true;