mirror of
https://github.com/esphome/esphome.git
synced 2026-05-30 23:54:04 +08:00
[openthread] Fix warning on old C89 implicit field zero init (#13935)
This commit is contained in:
@@ -104,7 +104,7 @@ void OpenThreadComponent::ot_main() {
|
|||||||
esp_cli_custom_command_init();
|
esp_cli_custom_command_init();
|
||||||
#endif // CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
|
#endif // CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
|
||||||
|
|
||||||
otLinkModeConfig link_mode_config = {0};
|
otLinkModeConfig link_mode_config{};
|
||||||
#if CONFIG_OPENTHREAD_FTD
|
#if CONFIG_OPENTHREAD_FTD
|
||||||
link_mode_config.mRxOnWhenIdle = true;
|
link_mode_config.mRxOnWhenIdle = true;
|
||||||
link_mode_config.mDeviceType = true;
|
link_mode_config.mDeviceType = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user