Skip to content

Commit f5b586a

Browse files
committed
Fix based on PR
Signed-off-by: Cervenka Dusan <[email protected]>
1 parent 5af44ed commit f5b586a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

erpc_c/infra/erpc_static_queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class StaticQueue
4242
m_capacity = elementCount;
4343
m_head = 0;
4444
m_tail = 0;
45-
m_storage = { { 0 } };
45+
(void)memset(m_storage, 0, sizeof(m_storage));
4646
}
4747

4848
/*!

erpc_c/transports/erpc_mu_transport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ erpc_status_t MUTransport::send(MessageBuffer *message)
250250

251251
m_txMsgSize = message->getUsed();
252252
m_txCntBytes = 0;
253-
m_txBuffer = reinterpret_cast<uint8_t *>(message->get());
253+
m_txBuffer = reinterpret_cast<uint32_t *>(message->get());
254254

255255
MU_SendMsgNonBlocking(m_muBase, 0, m_txMsgSize);
256256

0 commit comments

Comments
 (0)