From: Keith Packard Date: Sat, 21 Dec 2013 06:59:42 +0000 (-0800) Subject: altos: cc115l driver tone_run wasn't recording number of tones X-Git-Tag: 1.3.1~37 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=48f996a9d65631238b4de446530f31f83acb99f5;hp=e11fcc299f4a1a0461a3442ca13f8984d76c30ff altos: cc115l driver tone_run wasn't recording number of tones This would prevent the cc115l driver from ever sending tones. Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_cc115l.c b/src/drivers/ao_cc115l.c index 5d4f3bd6..f0f72d4d 100644 --- a/src/drivers/ao_cc115l.c +++ b/src/drivers/ao_cc115l.c @@ -564,6 +564,7 @@ ao_radio_tone_run(struct ao_radio_tone *tones, int ntones) ao_radio_tone = tones; ao_radio_tone_current = 0; ao_radio_tone_offset = 0; + ao_radio_tone_count = ntones; _ao_radio_send_lots(ao_radio_tone_fill, AO_RADIO_MODE_RDF); ao_radio_put(); }