From 6f7bd2dd2cd749519961215d3348982bf3d09d8a Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 21 Mar 2026 20:20:43 +0100 Subject: [PATCH] fix bw --- xrd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xrd.py b/xrd.py index 9e09a84..c9c8ffa 100644 --- a/xrd.py +++ b/xrd.py @@ -34,9 +34,10 @@ class AutoFMAM(TEF6686): if self.modulation == Modulation.FM: return self.FM_Get_Quality_Data() elif self.modulation == Modulation.AM: return self.AM_Get_Quality_Data() def Set_Bandwidth(self, bw_client: int): + bw_client //= 100 if self.modulation == Modulation.FM: auto = (bw_client == 0) - self.FM_Set_Bandwidth(auto, 2360 if auto else (bw_client // 100)) + self.FM_Set_Bandwidth(auto, 2360 if auto else bw_client) elif self.modulation == Modulation.AM: self.AM_Set_Bandwidth(bw_client) STEREO_BLENDING = False