ARMmbed / connectedhomeip

Project Connected Home over IP is a new Working Group within the Zigbee Alliance. This Working Group plans to develop and promote the adoption of a new connectivity standard to increase compatibility among smart home products, with security as a fundamental design tenet.
https://www.connectedhomeip.com
Apache License 2.0
10 stars 4 forks source link

Use static buffer in Logging.cpp #197

Closed lukgni closed 3 years ago

lukgni commented 3 years ago

Problem

The lighting-app example can accept only first ZCL message sent by the CHIP controller - next messages are ignored.

This problem occurred after c383a91 was merged with development branch. This behavior can be observed in lighting-app example only when it is built using debug profile.

Probably, problem is related to formattedMsg[CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE] buffer inside LogV() function. (CHIP_CONFIG_LOG_MESSAGE_MAX_SIZE is set to 256 by default (CHIPConfig.h)).

Summary of Changes

Move logging buffer to unnamed namespace.

Fixes #196