0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 03:23:54 +01:00

minor changes

This commit is contained in:
2025-06-27 20:05:32 +02:00
parent 9c7018132f
commit 44d54899f0
7 changed files with 5 additions and 25 deletions

View File

@@ -7,7 +7,7 @@ inline float dbr_to_deviation(float dbr) {
}
inline float deviation_to_dbr(float deviation) {
if(deviation == 0.0f) return -100.0f;
if (deviation < 1e-6f) return -100.0f;
return 10.0f * (log2f(deviation) - LOG2_19000) * 0.30103f;
}