From 19f9a68b3b8ba1ed619a1f8829b4d243de257591 Mon Sep 17 00:00:00 2001 From: rbaron Date: Sun, 2 May 2021 11:32:45 +0200 Subject: [PATCH] Bump RTT logger buffer from 512 to 1024 It was swalloing some of the messages when debugging. --- code/b-parasite/config/sdk_config.h | 2 +- code/b-parasite/src/prst/ble.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/b-parasite/config/sdk_config.h b/code/b-parasite/config/sdk_config.h index 01dd3cc..76f574c 100644 --- a/code/b-parasite/config/sdk_config.h +++ b/code/b-parasite/config/sdk_config.h @@ -11313,7 +11313,7 @@ // or this value is actually used. It depends on which one is bigger. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP -#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512 +#define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 1024 #endif // SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers. diff --git a/code/b-parasite/src/prst/ble.c b/code/b-parasite/src/prst/ble.c index 7ff2ce4..7700351 100644 --- a/code/b-parasite/src/prst/ble.c +++ b/code/b-parasite/src/prst/ble.c @@ -20,6 +20,7 @@ MSEC_TO_UNITS(PRST_BLE_ADV_INTERVAL_IN_MS, UNIT_0_625_MS) // Sensor data payload that will go into the advertisement message. +// We have a maximum of 20 bytes to play with here. #define SERVICE_DATA_LEN 12 static uint8_t service_data[SERVICE_DATA_LEN]; @@ -144,9 +145,9 @@ void prst_ble_update_adv_data(uint16_t batt_millivolts, APP_ERROR_CHECK(err_code); #if PRST_BLE_DEBUG - NRF_LOG_INFO("[ble] Encoded BLE adv packket:"); + NRF_LOG_INFO("[ble] Encoded BLE adv packet:"); for (int i = 0; i < sizeof(encoded_adv_data_); i++) { - NRF_LOG_INFO("[ble] 0x%x ", encoded_adv_data_[i]); + NRF_LOG_INFO("[ble] 0x%02x", encoded_adv_data_[i]); } #endif }