Fix a flaw in LSS patch.
authoretisserant
Mon, 17 Dec 2007 15:55:40 +0100
changeset 344 da65cf699839
parent 343 118c1cabd0b0
child 345 62d6b770a85f
Fix a flaw in LSS patch.
examples/TestMasterSlave/Master.c
--- a/examples/TestMasterSlave/Master.c	Mon Dec 17 13:22:35 2007 +0100
+++ b/examples/TestMasterSlave/Master.c	Mon Dec 17 15:55:40 2007 +0100
@@ -317,6 +317,8 @@
 	/* Ask slave node to go in stop mode */
 	masterSendNMTstateChange (&TestMaster_Data, 0, NMT_Stop_Node);
 	ConfigureLSSNode(&TestMaster_Data);
+#else
+	ConfigureSlaveNode(&TestMaster_Data, 0x02);
 #endif
 }
 
@@ -459,6 +461,8 @@
 void TestMaster_post_SlaveBootup(UNS8 nodeid)
 {
 	eprintf("TestMaster_post_SlaveBootup %x\n", nodeid);
+#ifdef CO_ENABLE_LSS
 	ConfigureSlaveNode(&TestMaster_Data, nodeid);
-}
-
+#endif
+}
+