Skip to content

Commit

Permalink
[Pipe] remove a useless variable on the serial TX protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Mar 19, 2024
1 parent 47302fe commit bac5bf1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tool_services/pipe/SERIAL/serial_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ static inline void SerialProtocol_Init(void)

static inline void SerialProtocol_CreateTxMsg(void)
{
static char *last_data_end = NULL;
// Evaluate size
// We want to evaluate the size of the last message only. To do that we create a fake StreamChannel with the same properties as the serialTx_StreamChannel but with the sample_ptr pointing to the begining of our message.
streaming_channel_t fake_StreamChannel = *serialTx_StreamChannel;
Expand All @@ -70,7 +69,6 @@ static inline void SerialProtocol_CreateTxMsg(void)
size_to_update[0] = size & 0xFF;
size_to_update[1] = size >> 8;
}
last_data_end = (char *)serialTx_StreamChannel->data_ptr;
// Write footer and header + size of the next message into the buffer
SerialProtocol_t SerialProtocol = {
SERIAL_FOOTER,
Expand Down

0 comments on commit bac5bf1

Please sign in to comment.