From 4b2f5435bd4a2b67cdbab6709902345fe4882037 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 9 Feb 2019 19:38:11 +0000 Subject: reduce function calls --- Model01-Firmware.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Model01-Firmware.ino b/Model01-Firmware.ino index b8b7d49..b74c498 100644 --- a/Model01-Firmware.ino +++ b/Model01-Firmware.ino @@ -157,9 +157,10 @@ private: const color (*map)[ROWS][COLS]; protected: void update(void) final { + uint8_t layer = Layer.top(); for (uint8_t r = 0; r < ROWS; r++) { for (uint8_t c = 0; c < COLS; c++) { - this->refreshAt(r, c); + LEDControl.setCrgbAt(r, c, colors[map[layer][r][c]]); } } } -- cgit v1.2.3