File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ bool _internalSetKeepAliveEnabled(bool enabled)
134134 OS_LOGV (TAG, " Disabling keep-alive task" );
135135 if (s_keepAliveTaskHandle != nullptr && s_keepAliveQueue != nullptr ) {
136136 // Wait for the task to stop
137- KnownShocker cmd {.killTask = true };
137+ KnownShocker cmd;
138+ memset (&cmd, 0 , sizeof (cmd));
139+ cmd.killTask = true ;
140+
138141 while (eTaskGetState (s_keepAliveTaskHandle) != eDeleted) {
139142 vTaskDelay (pdMS_TO_TICKS (10 ));
140143
Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ void RFTransmitter::destroy()
122122 OS_LOGD (TAG, " [pin-%hhi] Stopping task" , m_txPin);
123123
124124 // Wait for the task to stop
125- Command cmd {.flags = kFlagDeleteTask };
125+ Command cmd;
126+ memset (&cmd, 0 , sizeof (cmd));
127+ cmd.flags = kFlagDeleteTask ;
128+
126129 while (eTaskGetState (m_taskHandle) != eDeleted) {
127130 vTaskDelay (pdMS_TO_TICKS (10 ));
128131
You can’t perform that action at this time.
0 commit comments