mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 13:50:28 +00:00
Use placement-new to initialize static variables in CLI. (#341)
This commit is contained in:
@@ -58,6 +58,7 @@ static otDEFINE_ALIGNED_VAR(sCliUartRaw, sizeof(Uart), uint64_t);
|
||||
extern "C" void otCliUartInit(void)
|
||||
{
|
||||
sServer = new(&sCliUartRaw) Uart;
|
||||
Interpreter::Init();
|
||||
}
|
||||
|
||||
Uart::Uart(void)
|
||||
|
||||
Reference in New Issue
Block a user