From d179489316fdf4854bd9e23e94f479728494f6b1 Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Sun, 2 Jun 2019 22:56:56 +0200 Subject: [PATCH] Wrong type of PROGMEM read function fixed Reading a word and then assigning to a byte does not make sense. Changed to reading a byte instead. Signed-off-by: Florian Fleissner --- src/kaleidoscope/plugin/LEDEffect-BootAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaleidoscope/plugin/LEDEffect-BootAnimation.cpp b/src/kaleidoscope/plugin/LEDEffect-BootAnimation.cpp index f9cbd21c..8128f05e 100644 --- a/src/kaleidoscope/plugin/LEDEffect-BootAnimation.cpp +++ b/src/kaleidoscope/plugin/LEDEffect-BootAnimation.cpp @@ -60,7 +60,7 @@ EventHandlerResult BootAnimationEffect::afterEachCycle() { Key k = Layer.lookupOnActiveLayer(r, c); Key g; g.flags = 0; - g.keyCode = pgm_read_word(&greeting_[current_index_]); + g.keyCode = pgm_read_byte(&greeting_[current_index_]); if (k.raw == g.raw) { row = r;