diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-15 00:07:57 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-15 00:07:57 -0700 |
commit | fdc00ec143022356bf8cdbb28812f045b439c549 (patch) | |
tree | fda8f8f10eeb61e17bd95053686491aad1e710b9 | |
parent | c6069e38d6d2f9b37aa8671c41b4a470d92996a4 (diff) |
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 <keithp@keithp.com>
-rw-r--r-- | src/telelco-v0.1/ao_lco.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) |