Fixed Clock overlay not working in reverse mode

Removed need for Macros to start with capital letter
This commit is contained in:
cschwinne 2018-10-18 18:06:46 +02:00
parent 377e4fa0a5
commit f970780d6c
4 changed files with 3 additions and 4 deletions

View File

@ -99,8 +99,8 @@ void WS2812FX::setPixelColor(uint16_t n, uint32_t c) {
void WS2812FX::setPixelColor(uint16_t i, byte r, byte g, byte b, byte w) void WS2812FX::setPixelColor(uint16_t i, byte r, byte g, byte b, byte w)
{ {
if (_reverseMode) i = _length - 1 -i;
if (_locked[i] && SEGMENT.mode != FX_MODE_FIRE_2012) return; if (_locked[i] && SEGMENT.mode != FX_MODE_FIRE_2012) return;
if (_reverseMode) i = _length - 1 -i;
if (IS_REVERSE) i = SEGMENT.stop - (i - SEGMENT.start); //reverse just individual segment if (IS_REVERSE) i = SEGMENT.stop - (i - SEGMENT.start); //reverse just individual segment
if (!_cronixieMode) if (!_cronixieMode)
{ {

View File

@ -45,7 +45,7 @@
//version code in format yymmddb (b = daily build) //version code in format yymmddb (b = daily build)
#define VERSION 1810151 #define VERSION 1810181
char versionString[] = "0.8.0"; char versionString[] = "0.8.0";

View File

@ -567,7 +567,6 @@ String loadMacro(byte index)
if (EEPROM.read(i) == 0) break; if (EEPROM.read(i) == 0) break;
m += char(EEPROM.read(i)); m += char(EEPROM.read(i));
} }
if (m.charAt(0) < 65 || m.charAt(0) > 90) return ""; //do simple check if macro is valid (capital first letter)
return m; return m;
} }

View File

@ -243,7 +243,7 @@ void getBuildInfo()
#else #else
oappend("strip-pin: gpio2"); oappend("strip-pin: gpio2");
#endif #endif
oappend("\r\nbuild-type: src\r\n"); oappend("\r\nbuild-type: dev\r\n");
} }