CdefMaster slaves is initialized to an empty list on the CdefMaster constructor. In config_init each slave is appended to slaves. If a new slave is added physically to the network and config_init is called again, old slaves have been added again to the slaves list. It can be fixed by cleaning the slaves list before append slaves.
CdefMaster slaves is initialized to an empty list on the CdefMaster constructor. In config_init each slave is appended to slaves. If a new slave is added physically to the network and config_init is called again, old slaves have been added again to the slaves list. It can be fixed by cleaning the slaves list before append slaves.
https://github.com/bnjmnp/pysoem/blob/23ef331bdf30307bb778c1f65b7125b104edad08/pysoem/pysoem.pyx#L229-L242