Skip to content

Commit

Permalink
Fixing bug in frame counter (incorrect casting)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlgonz authored Sep 4, 2017
1 parent 3d88d9b commit cccbc9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions System/RepoCmd/cmdTRX.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ int trx_tm_addtoframe(int *data, int len, int mode)
single_frame = 0;
/* Append control field */
tmframe[int16_counter++] = CMD_TMFRAME_TCONT; /* Type (2) */
tmframe[int16_counter++] = (char)(frame_counter); /* Frame# (2) */
tmframe[int16_counter++] = (uint16_t)(frame_counter); /* Frame# (2) */

/* Add tm type */
/* For TM formate please see:
Expand Down Expand Up @@ -799,4 +799,4 @@ static int trx_tm_send(uint16_t *data, int len)
com_timeout, (void *)data, len*2, NULL, 0);

return result;
}
}

0 comments on commit cccbc9a

Please sign in to comment.