examples/DS401_Slave_Gui/TestSlaveGui.cpp
changeset 302 7ba4302a9999
parent 295 25ff2fadff89
child 329 7717252e3ed9
equal deleted inserted replaced
301:f4b64aa848e1 302:7ba4302a9999
   101 }
   101 }
   102 
   102 
   103 void stop_slave()
   103 void stop_slave()
   104 {	
   104 {	
   105     EnterMutex();
   105     EnterMutex();
       
   106 	setState(&ObjDict_Data, Stopped);
       
   107     LeaveMutex();
   106 
   108 
   107 	setState(&ObjDict_Data, Stopped);
       
   108     StopTimerLoop();
   109     StopTimerLoop();
   109     canClose(&ObjDict_Data);
   110     canClose(&ObjDict_Data);
   110 
   111 
   111     LeaveMutex();
       
   112 
       
   113 	return;
   112 	return;
   114 }
   113 }