btc_msg_t msg;
btc_ble_gattc_args_t arg;
- if (app_id < ESP_APP_ID_MIN || app_id > ESP_APP_ID_MAX) {
+ //if (app_id < ESP_APP_ID_MIN || app_id > ESP_APP_ID_MAX) {
+ if (app_id > ESP_APP_ID_MAX) {
return ESP_ERR_INVALID_ARG;
}
btc_msg_t msg;
btc_ble_gatts_args_t arg;
- if (app_id < ESP_APP_ID_MIN || app_id > ESP_APP_ID_MAX) {
+ //if (app_id < ESP_APP_ID_MIN || app_id > ESP_APP_ID_MAX) {
+ if (app_id > ESP_APP_ID_MAX) {
return ESP_ERR_INVALID_ARG;
}
#ifndef LOG_LEVEL
#define LOG_LEVEL LOG_LEVEL_INFO
#endif
-#define LOG_ERROR(fmt, args...) do {if (LOG_LEVEL >= LOG_LEVEL_ERROR) printf(fmt,## args);} while(0)
+#define LOG_ERROR(fmt, args...) do {if (LOG_LEVEL >= LOG_LEVEL_ERROR) BT_PRINTF(fmt,## args);} while(0)
#define LOG_WARN(fmt, args...) do {if (LOG_LEVEL >= LOG_LEVEL_WARN) BT_PRINTF(fmt,## args);} while(0)
#define LOG_INFO(fmt, args...) do {if (LOG_LEVEL >= LOG_LEVEL_INFO) BT_PRINTF(fmt,## args);} while(0)
#define LOG_DEBUG(fmt, args...) do {if (LOG_LEVEL >= LOG_LEVEL_DEBUG) BT_PRINTF(fmt,## args);} while(0)