KKopyscinski commented on code in PR #1975:
URL: https://github.com/apache/mynewt-nimble/pull/1975#discussion_r1952797045
##########
apps/bttester/src/btp_l2cap.c:
##########
@@ -748,6 +749,8 @@ tester_init_l2cap(void)
tester_register_command_handlers(BTP_SERVICE_ID_L2CAP, handlers,
ARRAY_SIZE(handlers));
+#endif
Review Comment:
I wonder if proper way to do this would be register commands, but do not
compile any command besides `BTP_L2CAP_READ_SUPPORTED_COMMANDS`, and in
`supported_commands()` set only
```c
tester_set_bit(rp->data, BTP_L2CAP_READ_SUPPORTED_COMMANDS);
```
and rest put under `#if MYNEWT_VAL(BLE_L2CAP_COC_MAX_NUM)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]