Fixed Clock overlay not working in reverse mode
Removed need for Macros to start with capital letter
This commit is contained in:
parent
377e4fa0a5
commit
f970780d6c
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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";
|
||||||
|
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user