Skip to content

Commit 4ff20c8

Browse files
committed
Fix some other warnings
1 parent 0034c9b commit 4ff20c8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/CommandHandler.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/radio/RFTransmitter.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)