From c6c58d60d231827d1d154c6ef3d4c835c750b5a8 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 6 Apr 2019 17:11:33 +0800 Subject: [PATCH] Fix EOL. --- menu.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/menu.cpp b/menu.cpp index fc03011..aa48668 100644 --- a/menu.cpp +++ b/menu.cpp @@ -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)