diff --git a/ohmpi/hardware_components/raspberry_pi.py b/ohmpi/hardware_components/raspberry_pi.py index e4ba6b4ef41464f32886313a0d5db6b4a0b2cbfa..a910758b222aab95e8c3c2547cee343d8ee4d750 100644 --- a/ohmpi/hardware_components/raspberry_pi.py +++ b/ohmpi/hardware_components/raspberry_pi.py @@ -25,8 +25,8 @@ SPECS = {'model': {'default': os.path.basename(__file__).rstrip('.py')}, class Ctl(CtlAbstract): def __init__(self, **kwargs): if 'model' not in kwargs.keys(): - for key in SPECS['tx'].keys(): - kwargs = enforce_specs(kwargs, SPECS['tx'], key) + for key in SPECS.keys(): + kwargs = enforce_specs(kwargs, SPECS, key) subclass_init = False else: subclass_init = True