From fdc00ec143022356bf8cdbb28812f045b439c549 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 15 Oct 2012 00:07:57 -0700 Subject: [PATCH] altos/telelco: Only display every 10th box number during scan This reduces the scan time to about 4 seconds, which seems tolerable Signed-off-by: Keith Packard --- src/telelco-v0.1/ao_lco.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/telelco-v0.1/ao_lco.c b/src/telelco-v0.1/ao_lco.c index ab9f6747..df7f865b 100644 --- a/src/telelco-v0.1/ao_lco.c +++ b/src/telelco-v0.1/ao_lco.c @@ -250,7 +250,8 @@ ao_lco_search(void) ao_lco_min_box = 0xff; ao_lco_max_box = 0x00; for (ao_lco_box = 0; ao_lco_box < AO_PAD_MAX_BOXES; ao_lco_box++) { - ao_lco_set_box(); + if ((ao_lco_box % 10) == 0) + ao_lco_set_box(); r = ao_lco_query(ao_lco_box, &ao_pad_query, &ao_lco_tick_offset); if (r == AO_RADIO_CMAC_OK) { if (ao_lco_box < ao_lco_min_box) -- 2.30.2