From 3f6465163dacdb8330e793443bc71b2467bf6696 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Wed, 2 Mar 2011 17:29:26 -0300 Subject: [PATCH] hcitool: use defined constants for address type --- tools/hcitool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hcitool.c b/tools/hcitool.c index e79d76b4f..3bdd3f589 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -2514,12 +2514,12 @@ static void cmd_lecc(int dev_id, int argc, char **argv) uint16_t min_interval, supervision_timeout, window, handle; uint8_t initiator_filter, own_bdaddr_type, peer_bdaddr_type; - peer_bdaddr_type = 0x00; /* Public device address */ + peer_bdaddr_type = LE_PUBLIC_ADDRESS; for_each_opt(opt, lecc_options, NULL) { switch (opt) { case 'r': - peer_bdaddr_type = 0x01; /* Random */ + peer_bdaddr_type = LE_RANDOM_ADDRESS; break; default: printf("%s", lecc_help); -- 2.47.3