diff --git a/cflib/crazyflie/param.py b/cflib/crazyflie/param.py index 4f77c9457..bc339eb9e 100644 --- a/cflib/crazyflie/param.py +++ b/cflib/crazyflie/param.py @@ -109,7 +109,7 @@ def __init__(self, ident=0, data=None): self.name = strs[1] metadata = data[0] - if type(metadata) == str: + if isinstance(metadata, str): metadata = ord(metadata) # If the fouth byte (1 << 4) (0x10) is set we have extended