diff --git a/src/modulator.c b/src/modulator.c index a06ac05..855b66f 100644 --- a/src/modulator.c +++ b/src/modulator.c @@ -27,8 +27,8 @@ void init_rds_objects() { void set_rds_level(float _level) { level = fminf(1.0f, fmaxf(0.0f, _level)); } -void set_rds_gen(uint8_t rdsgen) { - rdsgen = rdsgen & 1; +void set_rds_gen(uint8_t _rdsgen) { + rdsgen = _rdsgen & 1; } /* Get an RDS sample. This generates the envelope of the waveform using diff --git a/src/modulator.h b/src/modulator.h index 38073cd..7828cc8 100644 --- a/src/modulator.h +++ b/src/modulator.h @@ -13,4 +13,4 @@ typedef struct rds_t { extern void init_rds_objects(); extern void set_rds_level(float _level); -extern void set_rds_gen(uint8_t rdsgen); \ No newline at end of file +extern void set_rds_gen(uint8_t _rdsgen); \ No newline at end of file