[contesia] update comments to make channel alignment more obvious

main-solar-only
Richard Meadows 2016-03-04 20:35:43 +00:00
rodzic 2525e2ce91
commit 236d47c301
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -55,10 +55,12 @@ void contestia_preamble(void) {
}
void contestia_set_tone(uint8_t tone) {
/* Centre the tone */
int16_t centred_tone = tone - (CONTESTIA_NUMBER_OF_TONES / 2);
/* Align this to a channel */
int16_t channel = tone - (CONTESTIA_NUMBER_OF_TONES / 2);
int16_t channel = (centred_tone * CONTESTIA_CHANNEL_SPACING)+(CONTESTIA_CHANNEL_SPACING/2);
si_trx_switch_channel((channel * CONTESTIA_CHANNEL_SPACING)+(CONTESTIA_CHANNEL_SPACING/2));
si_trx_switch_channel(channel);
}
/**