You've already forked TEF6686_ESP32
Fixed wrong MEM colors
This commit is contained in:
@@ -2556,8 +2556,7 @@ void KeyUp() {
|
|||||||
if (!memorystore) {
|
if (!memorystore) {
|
||||||
DoMemoryPosTune();
|
DoMemoryPosTune();
|
||||||
} else {
|
} else {
|
||||||
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST;
|
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; else memoryposstatus = MEM_DARK;
|
||||||
else memoryposstatus = MEM_NORMAL;
|
|
||||||
}
|
}
|
||||||
ShowMemoryPos();
|
ShowMemoryPos();
|
||||||
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
|
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
|
||||||
@@ -2623,8 +2622,7 @@ void KeyDown() {
|
|||||||
if (!memorystore) {
|
if (!memorystore) {
|
||||||
DoMemoryPosTune();
|
DoMemoryPosTune();
|
||||||
} else {
|
} else {
|
||||||
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST;
|
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; else memoryposstatus = MEM_DARK;
|
||||||
else memoryposstatus = MEM_NORMAL;
|
|
||||||
}
|
}
|
||||||
ShowMemoryPos();
|
ShowMemoryPos();
|
||||||
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
|
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
|
||||||
@@ -2678,6 +2676,11 @@ void ShowMemoryPos() {
|
|||||||
if (tunemode == TUNE_MEM) {
|
if (tunemode == TUNE_MEM) {
|
||||||
int memposcolor = 0;
|
int memposcolor = 0;
|
||||||
int memposcolorsmooth = 0;
|
int memposcolorsmooth = 0;
|
||||||
|
|
||||||
|
if (!memorystore) {
|
||||||
|
if (IsStationEmpty()) memoryposstatus = MEM_DARK; else memoryposstatus = MEM_NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
switch (memoryposstatus) {
|
switch (memoryposstatus) {
|
||||||
case MEM_DARK:
|
case MEM_DARK:
|
||||||
memposcolor = InsignificantColor;
|
memposcolor = InsignificantColor;
|
||||||
|
|||||||
Reference in New Issue
Block a user