Skip to content

Commit

Permalink
fixed memorial text encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
d03n3rfr1tz3 committed Apr 29, 2024
1 parent 2a34e26 commit ad63b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/divoom/divoom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,8 @@ void Divoom::show_memorial(uint8_t value, char* date, char* time, char* text, bo
{
if (text[i] == '\0') end = true;
uint16_t chr = end ? '\0' : text[i];
buffer[index++] = (chr & 0xff);
buffer[index++] = (chr >> 8);
buffer[index++] = (chr & 0xff);
}

command(&(commands.command[commands.count++]), buffer, index);
Expand Down

0 comments on commit ad63b3a

Please sign in to comment.