New the BLINK fields do blink

This commit is contained in:
Raphael Coeffic
2021-05-06 12:55:59 +02:00
committed by Raphael Coeffic
parent 9bcd15e49d
commit 4656921dea
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
#include "view_main.h"
#include "lua/lua_api.h"
constexpr uint32_t STANDALONE_LUA_REFRESH = 1000 / 1; // 1Hz
constexpr uint32_t STANDALONE_LUA_REFRESH = 1000 / 5; // 5Hz
uint16_t* lcdGetBackupBuffer();
+2 -2
View File
@@ -203,9 +203,9 @@ static int luaLcdDrawText(lua_State *L)
const char * s = luaL_checkstring(L, 3);
unsigned int att = luaL_optunsigned(L, 4, 0);
bool invers = (att & INVERS) && !();
bool blink = att & INVERS;
bool shadowed = att & SHADOWED;
bool invers = (att & INVERS);
if (att & BLINK) invers = invers && !(BLINK_ON_PHASE);
// from here on, we need only the color
att = (att & 0xFFFF) | COLOR(COLOR_VAL(att));