This commit is contained in:
sorgelig
2019-04-06 17:11:33 +08:00
parent 28059fb4e9
commit c6c58d60d2

View File

@@ -489,22 +489,22 @@ static uint32_t menu_key_get(void)
return(c);
}
static int has_bt()
{
FILE *fp;
static char out[1035];
fp = popen("hcitool dev | grep hci0", "r");
if (!fp) return 0;
int ret = 0;
while (fgets(out, sizeof(out) - 1, fp) != NULL)
{
if (strlen(out)) ret = 1;
}
pclose(fp);
return ret;
static int has_bt()
{
FILE *fp;
static char out[1035];
fp = popen("hcitool dev | grep hci0", "r");
if (!fp) return 0;
int ret = 0;
while (fgets(out, sizeof(out) - 1, fp) != NULL)
{
if (strlen(out)) ret = 1;
}
pclose(fp);
return ret;
}
static char* getNet(int spec)