From: Keith Packard Date: Mon, 15 Oct 2012 07:07:57 +0000 (-0700) Subject: altos/telelco: Only display every 10th box number during scan X-Git-Tag: 1.1.9.1~15 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=fdc00ec143022356bf8cdbb28812f045b439c549 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 --- 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)