Commit 149ec289 authored by 陈伟灿's avatar 陈伟灿

Merge branch 'hzl' into 'master'

【修改内容】1. 去掉重复定义

See merge request chenweican/k-sdk!16
parents 3de8f63f 508cd389
......@@ -177,7 +177,7 @@ void kk_device_joined(EmberNodeId node)
UTIL_LOG_INFO("\n********************kk device joined********************\n");
if(emberAfDeviceTableGetEui64FromNodeId(node,mac)==false){
if(emberAfDeviceTableGetEui64FromNodeId(node,mac)){
deviceTableIndex = emberAfDeviceTableGetIndexFromNodeId(node);
if(deviceTableIndex!=0xffff){
devPtr = emberAfDeviceTablePointer();
......
......@@ -201,7 +201,7 @@ void emberAfMainTickCallback(void)
static unsigned int last_time;
unsigned int time = halCommonGetInt32uMillisecondTick();
if((time-last_time)>=500){
if((time - last_time)>=3000){
last_time = time;
kk_productCode_tick();
//printf("kk_productCode_tick!\n");
......
......@@ -29,7 +29,6 @@
#define ZIGBEE_COO_PRODUCT_CODE "2"
#define TEST_PRODUCT_CODE "24"
#define GW2CCU_PROTOCOL "tcp"
#define MSG_TOPO_CHANGE_TYPE_STR "changeType"
#define MSG_TOPO_CHANGE_DEVICES_STR "devices"
......@@ -39,13 +38,6 @@
int kk_zcl_onoff_set(jrpc_context * ctx,const char *mac,unsigned char ep,void* data);
int kk_sendData2CCU(char* data, int len);
#define RPC_KK_TEST_FUNCTION_TABLE \
......
......@@ -25,7 +25,7 @@
// Our strategy is print out the source for the randomness and hope security
// conscious users will verify this on their own systems.
static const char randomDevice[] = "/dev/random";
static const char randomDevice[] = "/dev/urandom";//"/dev/random";
//==============================================================================
// Funtions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment