Skip to content

Commit

Permalink
epaperdisplay: fix delay when two_byte_sequence_length is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Sola85 authored Oct 8, 2024
1 parent fe20582 commit af7d8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-module/epaperdisplay/EPaperDisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void send_command_sequence(epaperdisplay_epaperdisplay_obj_t *self,
uint16_t delay_length_ms = 0;
if (delay) {
data_size++;
delay_length_ms = *(cmd + 1 + data_size);
delay_length_ms = *(cmd + 1 + data_size + self->two_byte_sequence_length);
if (delay_length_ms == 255) {
delay_length_ms = 500;
}
Expand Down

0 comments on commit af7d8b7

Please sign in to comment.