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

limit the level

This commit is contained in:
2025-03-14 18:41:46 +01:00
parent 2b98c7c3e9
commit 63b8b21743

View File

@@ -23,7 +23,7 @@ void init_rds_objects() {
} }
void set_rds_level(float _level) { void set_rds_level(float _level) {
level = _level; level = fminf(1.0f, fmaxf(0.0f, _level));
} }
/* Get an RDS sample. This generates the envelope of the waveform using /* Get an RDS sample. This generates the envelope of the waveform using