diff --git a/src/ble/ble_service.c b/src/ble/ble_service.c index e1611a9..44531fc 100644 --- a/src/ble/ble_service.c +++ b/src/ble/ble_service.c @@ -348,7 +348,7 @@ static int ble_request_preferred_conn_params(bool count_attempt) err = bt_conn_get_info(current_conn, &info); if ((err == 0) && (info.type == BT_CONN_TYPE_LE)) { - uint16_t cur_interval = info.le.interval; + uint16_t cur_interval = (uint16_t)(info.le.interval_us / 1250U); uint16_t cur_latency = info.le.latency; uint16_t cur_timeout = info.le.timeout; diff --git a/src/drivers/imu/imu_i2c.c b/src/drivers/imu/imu_i2c.c index fac19b7..1d09703 100644 --- a/src/drivers/imu/imu_i2c.c +++ b/src/drivers/imu/imu_i2c.c @@ -687,7 +687,6 @@ int imu_fifo_read_latest(uint8_t *sample_bytes, } { - uint16_t raw_count = record_count; record_count = imu_fifo_compact_records(record_count); DBG_PRINTF("[IMU FIFO] compact %u -> %u\r\n", raw_count, record_count); } diff --git a/sysbuild/mcuboot.conf b/sysbuild/mcuboot.conf index f2e586c..d4f5a3d 100644 --- a/sysbuild/mcuboot.conf +++ b/sysbuild/mcuboot.conf @@ -1,12 +1,11 @@ CONFIG_GPIO_HOGS=y -# MCUboot RTT logging(test) -CONFIG_LOG=n -CONFIG_LOG_MODE_IMMEDIATE=y -CONFIG_LOG_DEFAULT_LEVEL=3 -CONFIG_MCUBOOT_LOG_LEVEL_DBG=y +# Keep MCUboot LOG enabled to satisfy MCUboot default Kconfig choices, +# but disable console/log output backends. +CONFIG_LOG=y +CONFIG_LOG_DEFAULT_LEVEL=0 +CONFIG_MCUBOOT_LOG_LEVEL_OFF=y -CONFIG_PRINTK=n CONFIG_USE_SEGGER_RTT=y CONFIG_CONSOLE=n CONFIG_RTT_CONSOLE=n @@ -15,3 +14,7 @@ CONFIG_LOG_BACKEND_SHOW_COLOR=n CONFIG_LOG_BACKEND_UART=n CONFIG_UART_CONSOLE=n + +# security boot +CONFIG_REBOOT=y +CONFIG_DISABLE_FLASH_PATCH=y