diff --git a/src/rds.c b/src/rds.c index f12c0b5..b14e927 100644 --- a/src/rds.c +++ b/src/rds.c @@ -120,10 +120,10 @@ static uint16_t get_next_af(RDSEncoder* enc) { } static void get_next_af_oda(RDSEncoder* enc, uint16_t* af_group) { - uint8_t offset = 0; + uint8_t offset = 1; if (enc->state[enc->program].af_oda_state == 0) { af_group[0] = (AF_CODE_NUM_AFS_BASE + enc->data[enc->program].af_oda.num_afs); - offset = 1; + offset++; } else { af_group[0] = enc->data[enc->program].af_oda.afs[enc->state[enc->program].af_oda_state++]; }