From ad63b3afdd82909be87c51917f1c88711a1aa0c0 Mon Sep 17 00:00:00 2001 From: Dirk Sarodnick Date: Tue, 30 Apr 2024 00:36:06 +0200 Subject: [PATCH] fixed memorial text encoding --- src/divoom/divoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/divoom/divoom.cpp b/src/divoom/divoom.cpp index 5e0a368..20aeccb 100644 --- a/src/divoom/divoom.cpp +++ b/src/divoom/divoom.cpp @@ -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);