Skip to content

Commit

Permalink
firmware: app: tasks: process_tc: Fixing ttc_recv error check #343
Browse files Browse the repository at this point in the history
  • Loading branch information
c-porto committed Mar 27, 2024
1 parent 1e0e4c2 commit b6e989f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/app/tasks/process_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void vTaskProcessTC(void)
uint8_t pkt[300] = {0};
uint16_t pkt_len = 0;

if (ttc_recv(TTC_1, pkt, &pkt_len) != 0)
if (ttc_recv(TTC_1, pkt, &pkt_len) == 0)
{
switch(pkt[0])
{
Expand Down

0 comments on commit b6e989f

Please sign in to comment.