Skip to content

Commit

Permalink
state check change tile size
Browse files Browse the repository at this point in the history
  • Loading branch information
bartmoons committed Apr 12, 2023
1 parent 80dc6d8 commit 7a5d4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fragmenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1995,7 +1995,7 @@ int8_t schc_set_tile_size(schc_fragmentation_t* conn, uint16_t tile_size) {
if(conn->fragmentation_rule == NULL) {
return SCHC_FAILURE;
}
if(conn->fragmentation_rule->mode != ACK_ON_ERROR) {
if(conn->fragmentation_rule->mode != ACK_ON_ERROR && conn->TX_STATE == SEND) {
conn->tile_size = tile_size;
DEBUG_PRINTF("schc_set_tile_size(): changed tile size to %d\n", conn->tile_size);
return SCHC_SUCCESS;
Expand Down

0 comments on commit 7a5d4ad

Please sign in to comment.