forked from xuos/xiuos
support adapter_lora and sx1278 device on aiit-arm32-board
This commit is contained in:
@@ -72,14 +72,14 @@ int AdapterZigbeeInit(void)
|
||||
ret = AdapterZigbeeRegister(adapter);
|
||||
if (ret < 0) {
|
||||
printf("AdapterZigbeeRegister register zigbee adapter error\n");
|
||||
free(adapter);
|
||||
PrivFree(adapter);
|
||||
return -1;
|
||||
}
|
||||
#ifdef ADAPTER_E18
|
||||
AdapterProductInfoType product_info = E18Attach(adapter);
|
||||
if (!product_info) {
|
||||
printf("AdapterZigbeeRegister e18 attach error\n");
|
||||
free(adapter);
|
||||
PrivFree(adapter);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -255,7 +255,7 @@ static int E18Ioctl(struct Adapter *adapter, int cmd, void *args)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int E18Join(struct Adapter *adapter, const char *priv_net_group)
|
||||
static int E18Join(struct Adapter *adapter, unsigned char *priv_net_group)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user