Index: leahi_dialin/fp/modules/fp_test_configs.py =================================================================== diff -u -r20c821bd230fc7689a0275a2918981669ff5cc19 -r21a1d644c7d02e7588781b9025b422aa9d74c9ca --- 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 21a1d644c7d02e7588781b9025b422aa9d74c9ca) @@ -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 @@ -72,9 +71,9 @@ index = MsgFieldPositions.START_POS_FIELD_1 for config in DDFPTestConfigOptions.__members__: - if 'NUM_OF_TEST_CONFIGS' not in config: + 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