diff --git a/src/rfcomm.c b/src/rfcomm.c index cb43da259..9d37823f8 100644 --- a/src/rfcomm.c +++ b/src/rfcomm.c @@ -551,7 +551,7 @@ static int rfcomm_send_uih_prepared(rfcomm_multiplexer_t *multiplexer, uint8_t d uint16_t pos = 0; rfcomm_out_buffer[pos++] = address; - rfcomm_out_buffer[pos++] = BT_RFCOMM_UIH; + rfcomm_out_buffer[pos++] = control; rfcomm_out_buffer[pos++] = (len & 0x7f) << 1; // bits 0-6 rfcomm_out_buffer[pos++] = len >> 7; // bits 7-14 diff --git a/src/utils.c b/src/utils.c index 4b550f588..890a4beb1 100644 --- a/src/utils.c +++ b/src/utils.c @@ -118,6 +118,7 @@ void printf_hexdump(const void *data, int size){ } void hexdump(const void *data, int size){ +#ifdef ENABLE_LOG_INFO char buffer[6*16+1]; int i, j; @@ -142,6 +143,7 @@ void hexdump(const void *data, int size){ buffer[j] = 0; log_info("%s", buffer); } +#endif } void hexdumpf(const void *data, int size){