Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Aug 27, 2022
1 parent ad369c8 commit 6e71763
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ lwespi_process(const void* data, size_t data_len) {
uint8_t ch;
const uint8_t* d = data;
size_t d_len = data_len;
static uint8_t ch_prev1, ch_prev2;
static uint8_t ch_prev1;
static lwesp_unicode_t unicode;

/* Check status if device is available */
Expand Down Expand Up @@ -1389,7 +1389,6 @@ lwespi_process(const void* data, size_t data_len) {
RECV_RESET(); /* Invalid character in sequence */
}
}
ch_prev2 = ch_prev1; /* Save previous character as previous previous */
ch_prev1 = ch; /* Set current as previous */
}
return lwespOK;
Expand Down

0 comments on commit 6e71763

Please sign in to comment.