diff --git a/bc125py/sdo.py b/bc125py/sdo.py index e035ede..c74a117 100644 --- a/bc125py/sdo.py +++ b/bc125py/sdo.py @@ -792,8 +792,8 @@ def from_dict(self, data) -> None: self.frequency = data["frequency"] # Some input flexibility for modulation - raw_modulation = str(data["modulation"]).lower() - raw_modulation = "nfm" if raw_modulation == "fmn" else raw_modulation + raw_modulation = data["modulation"].lower() + raw_modulation = ("nfm" if raw_modulation == "fmn" else raw_modulation) self.modulation = E_Modulation[raw_modulation] # We do ctcss later