#else
mmi_hengai_health_lib_activation_feedback();
#endif
+ #ifdef __MMI_CUSTOM_HENGAI_SLEEP_K18__
+ char * req_code = mmi_hengai_health_lib_req_code_get();
+ mmi_hengai_health_sleep_lib_active(req_code, act_code);
+ #endif
}
}
lv_fs_remove(HENGAI_SLEEP_RESULT_FILE);
#endif
}
+
+void mmi_hengai_health_sleep_lib_active(char * req_code, char * act_code)
+{
+ if(NULL == req_code || NULL == act_code)
+ return;
+
+ printf("[@CHENG_DEBUG][%s][%d]: req_code=%s\n", __FUNCTION__, __LINE__, req_code);
+ printf("[@CHENG_DEBUG][%s][%d]: act_code=%s\n", __FUNCTION__, __LINE__, act_code);
+ int ret = activate_algorithm((unsigned char *)req_code, strlen(req_code), (unsigned char *)act_code, strlen(act_code));
+ printf("[@CHENG_DEBUG][%s][%d]: ret=%d\n", __FUNCTION__, __LINE__, ret);
+}
#endif
}
else
{
- PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: false\n", __FUNCTION__, __LINE__);
+ PROTOCOL_DEBUG_PRINTF("[@CHENG_DEBUG][%s][%d]: false.imei=%s\n", __FUNCTION__, __LINE__, imei);
//cplog_printf("[@CHENG_DEBUG][%s][%d]: false\n", __FUNCTION__, __LINE__);
}
}