Skip to content

Commit

Permalink
Fix SendAsyncMessage to place message in correct location (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Makuna authored Jan 7, 2018
1 parent 904a906 commit 7ff258d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ bool MessageTask::SendAsyncMessage(const Message& message, bool withinIsr)
if (nextIndex != _indexFront)
{
// copy message into queue
volatile uint8_t* pQueue = _pQueue + (nextIndex * _messageSize);
volatile uint8_t* pQueue = _pQueue + (_indexBack * _messageSize);
const uint8_t* pMessage = (const uint8_t*)&message;
for (uint8_t i = 0; i < message.Size; i++)
{
Expand Down

0 comments on commit 7ff258d

Please sign in to comment.