Skip to content

Commit 6c3daec

Browse files
committed
drv/bluetooth/bluenrg: Fix device info service
Classic Contiki mistake. Local variables are used across yields, so need to be static.
1 parent ec40a39 commit 6c3daec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/drv/bluetooth/bluetooth_stm32_bluenrg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ static PT_THREAD(init_device_information_service(struct pt *pt)) {
403403
static const uint8_t firmware_version_char_uuid[] = { 0x26, 0x2A }; // 0x2A26
404404
static const uint8_t software_version_char_uuid[] = { 0x28, 0x2A }; // 0x2A28
405405

406-
uint16_t service_handle, fw_ver_char_handle, sw_ver_char_handle;
406+
static uint16_t service_handle, fw_ver_char_handle, sw_ver_char_handle;
407407

408408
PT_BEGIN(pt);
409409

0 commit comments

Comments
 (0)