Skip to content

Commit

Permalink
Small compilation fixes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Nov 27, 2021
1 parent 1ab9580 commit a91a1fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/proto/fd/tiny_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,11 +720,11 @@ static uint8_t *tiny_fd_get_next_frame_to_send(tiny_fd_handle_t handle, int *len
if ( ptr != NULL )
{
// clear queue only, when send is done, so for now, use pointer data for sending only
uint8_t s_frame_peer = 0; // TODO: Get from the packet
data = (uint8_t *)&ptr->header;
*len = ptr->len + sizeof(tiny_frame_header_t);
if ( (data[1] & HDLC_S_FRAME_MASK) == HDLC_S_FRAME_BITS )
{
uint8_t s_frame_peer = 0; // TODO: Get from the packet
handle->peers[s_frame_peer].sent_nr = ptr->header.control >> 5;
}

Expand Down
2 changes: 1 addition & 1 deletion src/proto/fd/tiny_fd_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern "C"
#define FD_MIN_BUF_SIZE(mtu, window) ( sizeof(tiny_fd_data_t) + \
HDLC_MIN_BUF_SIZE( mtu + sizeof(tiny_frame_header_t), HDLC_CRC_16 ) + \
( sizeof(tiny_fd_frame_info_t *) + sizeof(tiny_fd_frame_info_t) + mtu \
- sizeof(((tiny_fd_frame_info_t *)0)->user_payload) ) * window + \
- sizeof(((tiny_fd_frame_info_t *)0)->payload) ) * window + \
( sizeof(tiny_fd_frame_info_t) + sizeof(tiny_fd_frame_info_t *) ) * TINY_FD_U_QUEUE_MAX_SIZE )

typedef enum
Expand Down

0 comments on commit a91a1fe

Please sign in to comment.