Index: leahi_dialin/fp/modules/fp_test_configs.py =================================================================== diff -u -r20c821bd230fc7689a0275a2918981669ff5cc19 -r9f947930678d5b13aa8f788f4e3d58cd1370a541 --- leahi_dialin/fp/modules/fp_test_configs.py (.../fp_test_configs.py) (revision 20c821bd230fc7689a0275a2918981669ff5cc19) +++ leahi_dialin/fp/modules/fp_test_configs.py (.../fp_test_configs.py) (revision 9f947930678d5b13aa8f788f4e3d58cd1370a541) @@ -42,8 +42,7 @@ if self.can_interface is not None: channel_id = DenaliChannels.fp_to_dialin_ch_id - self.msg_id_fp_send_test_config = MsgIds.MSG_ID_FP_SEND_TEST_CONFIGURATION.value - self.can_interface.register_receiving_publication_function(channel_id, self.msg_id_fp_send_test_config, + self.can_interface.register_receiving_publication_function(channel_id, MsgIds.MSG_ID_FP_SEND_TEST_CONFIGURATION.value, self._handler_fp_test_config_sync) self.fp_test_configs_response_timestamp = 0.0 #: The timestamp of the last message @@ -71,10 +70,12 @@ payload = message['message'] index = MsgFieldPositions.START_POS_FIELD_1 + print(f'run') for config in DDFPTestConfigOptions.__members__: - if 'NUM_OF_TEST_CONFIGS' not in config: + print(f'config: {config.name}') + if 'NUM_OF_TEST_CONFIGS' not in config.name: config_value, index = bytearray_to_integer(payload, index, False) - self.fp_test_configs[config] = config_value + self.fp_test_configs[config.name] = config_value self.fp_test_configs_response_timestamp = timestamp