bthci/hci2implementations/hctls/bcsp/src/hctlbcspcontrollermanager.cpp
branchRCL_3
changeset 8 2b6718f05bdb
parent 0 29b1cd4cb562
equal deleted inserted replaced
4:28479eeba3fb 8:2b6718f05bdb
   188 TInt CHCTLBcspControllerManager::DoSetPower(TBTPowerState aState)
   188 TInt CHCTLBcspControllerManager::DoSetPower(TBTPowerState aState)
   189 	{
   189 	{
   190 	switch(aState)
   190 	switch(aState)
   191 		{
   191 		{
   192 		case EBTOff:
   192 		case EBTOff:
   193 			{
   193 			{			
   194 			iHCTLBcsp.WriteBcCmd(iColdHaltCommand); //this should not produce a response
       
   195 			iPowerDownCallback->CallBack();	//allows asynch callback to BTClient.
   194 			iPowerDownCallback->CallBack();	//allows asynch callback to BTClient.
   196 			iCurrentTask = EPowerDown;
   195 			iCurrentTask = EPowerDown;
   197 			iControllerManagerState = EWaiting;
   196 			iControllerManagerState = EResetHardware;
   198 			iHCTLBcsp.Choke();
   197 			iHCTLBcsp.Choke();
   199 			}
   198 			}
   200 			break;
   199 			break;
   201 
   200 
   202 		case EBTOn:
   201 		case EBTOn: