void SoftGemini_SenseIndicationCB( TI_HANDLE hSoftGemini, char* str, TI_UINT32 strLen ) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; if (pSoftGemini->SoftGeminiEnable == SG_DISABLE) { return; } if ( (SENSE_MODE_ENABLE == *str) && (!pSoftGemini->bDriverEnabled) ) { SoftGemini_EnableDriver(hSoftGemini); } else if ( (SENSE_MODE_DISABLE == *str) && (pSoftGemini->bDriverEnabled) ) { SoftGemini_DisableDriver(hSoftGemini); } }
void SoftGemini_SenseIndicationCB( TI_HANDLE hSoftGemini, char* str, TI_UINT32 strLen ) { SoftGemini_t *pSoftGemini = (SoftGemini_t *)hSoftGemini; if (pSoftGemini->SoftGeminiEnable == SG_DISABLE) { TRACE0(pSoftGemini->hReport, REPORT_SEVERITY_WARNING, ": SG is disabled, existing"); return; } if ( (SENSE_MODE_ENABLE == *str) && (!pSoftGemini->bDriverEnabled) ) { SoftGemini_EnableDriver(hSoftGemini); } else if ( (SENSE_MODE_DISABLE == *str) && (pSoftGemini->bDriverEnabled) ) { SoftGemini_DisableDriver(hSoftGemini); } }