altos: cc115l driver tone_run wasn't recording number of tones
authorKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:59:42 +0000 (22:59 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 21 Dec 2013 06:59:42 +0000 (22:59 -0800)
This would prevent the cc115l driver from ever sending tones.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc115l.c

index 5d4f3bd666892160699fdb7c7dc758b1e53465f8..f0f72d4d4f294d2ec02fd020827556cc7ced6d1c 100644 (file)
@@ -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();
 }