From db1c05786a9b362638dcba86ac078739828de1e8 Mon Sep 17 00:00:00 2001 From: hedger Date: Wed, 6 Dec 2023 21:18:06 +0400 Subject: [PATCH] fixing PVS warnings --- targets/f7/ble_glue/services/dev_info_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/f7/ble_glue/services/dev_info_service.c b/targets/f7/ble_glue/services/dev_info_service.c index 0fa281bf2833..40038cc43f33 100644 --- a/targets/f7/ble_glue/services/dev_info_service.c +++ b/targets/f7/ble_glue/services/dev_info_service.c @@ -36,7 +36,7 @@ static char software_revision[DEVICE_INFO_SOFTWARE_REV_SIZE] = {0}; static bool dev_info_char_data_callback(const void* context, const uint8_t** data, uint16_t* data_len) { - *data_len = strlen(context); + *data_len = (uint16_t)strlen(context); if(data) { *data = (const uint8_t*)context; }