Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RepeaterTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ void RepeaterTask::InterruptRxData()
protocolRxBuffer[protocolMsgIdx++] = '\0';
isProtocolMsgReady = true;

// Notify the protocol task
Command cm(PROTOCOL_COMMAND, EVENT_PROTOCOL_RX_COMPLETE);
// Notify the repeater task
Command cm(PROTOCOL_COMMAND, REPEATER_TASK_COMMANDS::EVENT_REPEATER_RX_COMPLETE);
bool res = qEvtQueue->SendFromISR(cm);

// If we failed to send the event, we should reset the buffer, that way ProtocolTask doesn't stall
Expand Down
2 changes: 1 addition & 1 deletion RepeaterTask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class RepeaterTask : public Task

inline void RepeaterTask::SendData(uint8_t* data, uint16_t size)
{
Command cm;
Command cm(DATA_COMMAND, uartTaskCommand);
cm.CopyDataToCommand(data, size);

// Send it to the UART task using the task's registered uartTaskCommand
Expand Down