From ecce0e65023daf085fcac6eeedc73a852cadf832 Mon Sep 17 00:00:00 2001 From: unknown10777 <83267603+unknown10777@users.noreply.github.com> Date: Mon, 25 Dec 2023 01:31:18 +0800 Subject: [PATCH] some not match original code spacing --- client/src/cmdusart.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/client/src/cmdusart.c b/client/src/cmdusart.c index a356834cd..755205966 100644 --- a/client/src/cmdusart.c +++ b/client/src/cmdusart.c @@ -165,23 +165,22 @@ static int usart_bt_testcomm(uint32_t baudrate, uint8_t parity) { // 1000, such large timeout needed ret = usart_txrx((uint8_t *)string, strlen(string), data, &len, 1000); - if (ret == PM3_SUCCESS) - { + if (ret == PM3_SUCCESS) { PrintAndLogEx(SUCCESS, "RX (%3zu):%.*s", len, (int)len, data); if (str_startswith((char *)data, "hc01.comV2.0") || str_startswith((char *)data, "www.hc01.com") || - str_startswith((char *)data, "BT SPP V4.0")) - { + str_startswith((char *)data, "BT SPP V4.0")) { + PrintAndLogEx(SUCCESS, "Add-on " _GREEN_("found!")); + // if it fully match HC-04's attribute - if (str_startswith((char *)data, "www.hc01.com V2.5, 2022-04-26")) - { + if (str_startswith((char *)data, "www.hc01.com V2.5, 2022-04-26")) { isBluetoothExtensionHC04 = true; PrintAndLogEx(INFO, "Bluetooth module identified as HC-04."); } // if it fully match Blueshark HC-05's attribute - if (str_startswith((char *)data, "hc01.comV2.0")){ + if (str_startswith((char *)data, "hc01.comV2.0")) { isBluetoothExtensionHC05Blueshark = true; PrintAndLogEx(INFO, "Bluetooth module identified as Blueshark HC-05."); }