Commit ff5d20f3 authored by natalie's avatar natalie 💜
Browse files

Remove confusing "truncate" scroll type

parent 8df15ee3
...@@ -412,6 +412,11 @@ static uint8_t loadoptionsfile(const char *filename) { ...@@ -412,6 +412,11 @@ static uint8_t loadoptionsfile(const char *filename) {
for (uint8_t j=0;j<OPTION_COUNT;j++) { for (uint8_t j=0;j<OPTION_COUNT;j++) {
if (Options[j].uid == uid) { if (Options[j].uid == uid) {
found = true; found = true;
if (uid == 0x0011 && v == 2) { //"truncate" scroll type got deleted
ESP_LOGW(TAG, "Fixing unsupported scroll type");
v = SCROLLTYPE_PINGPONG;
OptionsMgr_Touch();
}
if (Options[j].var != NULL) *(volatile uint8_t*)Options[j].var = v; if (Options[j].var != NULL) *(volatile uint8_t*)Options[j].var = v;
if (Options[j].cb_initial != NULL) Options[j].cb_initial(); if (Options[j].cb_initial != NULL) Options[j].cb_initial();
loaded[j] = true; loaded[j] = true;
......
...@@ -25,7 +25,6 @@ typedef enum { ...@@ -25,7 +25,6 @@ typedef enum {
typedef enum { typedef enum {
SCROLLTYPE_PINGPONG, SCROLLTYPE_PINGPONG,
SCROLLTYPE_CIRCULAR, SCROLLTYPE_CIRCULAR,
SCROLLTYPE_DOT,
SCROLLTYPE_COUNT, SCROLLTYPE_COUNT,
} ScrollType_t; } ScrollType_t;
......
...@@ -153,9 +153,6 @@ static void displayvalue(char *buf, bool def) { ...@@ -153,9 +153,6 @@ static void displayvalue(char *buf, bool def) {
case SCROLLTYPE_CIRCULAR: case SCROLLTYPE_CIRCULAR:
strcpy(buf, "Circular"); strcpy(buf, "Circular");
break; break;
case SCROLLTYPE_DOT:
strcpy(buf, "Truncate");
break;
default: default:
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment