equal
deleted
inserted
replaced
80 |
80 |
81 case NMT_Reset_Comunication: |
81 case NMT_Reset_Comunication: |
82 if(d->NMT_Slave_Communications_Reset_Callback != NULL) |
82 if(d->NMT_Slave_Communications_Reset_Callback != NULL) |
83 d->NMT_Slave_Communications_Reset_Callback(d); |
83 d->NMT_Slave_Communications_Reset_Callback(d); |
84 #ifdef CO_ENABLE_LSS |
84 #ifdef CO_ENABLE_LSS |
85 if(getNodeId(d)!=d->lss_transfer.nodeID && getNodeId(d)>0 && getNodeId(d)<=127) |
85 // LSS changes NodeId here in case lss_transfer.nodeID |
86 setNodeId(d, d->lss_transfer.nodeID); |
86 // doesn't match current getNodeId() |
|
87 if(newNodeId!=d->lss_transfer.nodeID && newNodeId>0 && newNodeId<=127 ) |
|
88 newNodeId = d->lss_transfer.nodeID; |
87 #endif |
89 #endif |
88 setState(d,Initialisation); |
90 setState(d,Initialisation); |
89 break; |
91 break; |
90 |
92 |
91 }/* end switch */ |
93 }/* end switch */ |