0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

fix the function

This commit is contained in:
2025-03-14 18:57:30 +01:00
parent 1dd8848020
commit 0dee049746
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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);
extern void set_rds_gen(uint8_t _rdsgen);