Remove -Wno-format compile option for bluedroid BLE examples

This commit is contained in:
zhiweijian
2022-12-09 12:29:41 +08:00
parent c64c6f3711
commit ebc9c92ed6
23 changed files with 44 additions and 46 deletions
@@ -1,3 +1,2 @@
idf_component_register(SRCS "spp_client_demo.c"
INCLUDE_DIRS ".")
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
@@ -218,7 +218,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
}
//the unit of the duration is second
uint32_t duration = 0xFFFF;
ESP_LOGI(GATTC_TAG, "Enable Ble Scan:during time 0x%04X minutes.",duration);
ESP_LOGI(GATTC_TAG, "Enable Ble Scan:during time %04" PRIx32 " minutes.",duration);
esp_ble_gap_start_scanning(duration);
break;
}