www.pudn.com > headset.rar > hsState.c


 
#include "demohs.h" 
 
/* 
    updateHsConnectState 
 
    Update the current connect state of the headset to reflect what the 
    headset is currently trying to do. 
*/ 
void updateHsConnectState(hs_conn_state_t new_state) 
{ 
    hsState.connectState = new_state; 
 
#ifdef DEV_BOARD_HS 
    /* if flashing LEDs update the flashing pattern */ 
    changeFlash(); 
#endif 
}