From cadca6186e3ce0c4f8fe650b1e361155560074f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sun, 7 Jul 2019 22:07:47 +0000 Subject: [PATCH] Update level.cpp --- programs/pokitto/level.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/pokitto/level.cpp b/programs/pokitto/level.cpp index 2488ebe..c250d06 100644 --- a/programs/pokitto/level.cpp +++ b/programs/pokitto/level.cpp @@ -66,6 +66,7 @@ uint32_t previousTriangle = 100; static inline uint8_t addIntensity(uint8_t color, int16_t intensity) { int16_t newValue = (color & 0b00001111) + intensity; // value as in HSV + // TODO: ^ this could be uint8? Would be faster! Also in the below function. if (newValue >= 16) newValue = 15;