diff --git a/src/duckparser/duckparser.cpp b/src/duckparser/duckparser.cpp index e52c8f3..1d56870 100644 --- a/src/duckparser/duckparser.cpp +++ b/src/duckparser/duckparser.cpp @@ -290,6 +290,7 @@ namespace duckparser { ignore_delay = true; } + /* // LED else if (compare(cmd->str, cmd->len, "LED", CASE_SENSETIVE)) { // i.e. LED R SOLID @@ -302,7 +303,7 @@ namespace duckparser { color = led::Color::RED; } else if (compare(w->str, w->len, "G", CASE_SENSETIVE)) { color = led::Color::GREEN; - } else { /* if (compare(w->str, w->len, "B", CASE_SENSETIVE)) */ + } else { // if (compare(w->str, w->len, "B", CASE_SENSETIVE)) color = led::Color::BLUE; } @@ -314,7 +315,7 @@ namespace duckparser { mode = led::Mode::SLOW; } else if (compare(w->str, w->len, "FAST", CASE_SENSETIVE)) { mode = led::Mode::FAST; - } else { /* if (compare(w->str, w->len, "OFF", CASE_SENSETIVE)) */ + } else { // if (compare(w->str, w->len, "OFF", CASE_SENSETIVE)) mode = led::Mode::OFF; } @@ -340,6 +341,7 @@ namespace duckparser { ignore_delay = true; } + */ // KEYCODE else if (compare(cmd->str, cmd->len, "KEYCODE", CASE_SENSETIVE)) { word_node* w = cmd->next; diff --git a/src/preferences/preferences.cpp b/src/preferences/preferences.cpp index 6acab78..f1d7791 100644 --- a/src/preferences/preferences.cpp +++ b/src/preferences/preferences.cpp @@ -69,7 +69,7 @@ namespace preferences { void toJson(JsonDocument& root) { root["enable_msc"] = enable_msc; - root["enable_led"] = enable_led; + //root["enable_led"] = enable_led; root["enable_hid"] = enable_hid; root["hid_vid"] = hid_vid; @@ -121,7 +121,7 @@ namespace preferences { // === Add missing values === // if (!config_doc.containsKey("enable_msc")) config_doc["enable_msc"] = enable_msc; - if (!config_doc.containsKey("enable_led")) config_doc["enable_led"] = enable_led; + //if (!config_doc.containsKey("enable_led")) config_doc["enable_led"] = enable_led; if (!config_doc.containsKey("enable_hid")) config_doc["enable_hid"] = enable_hid; if (!config_doc.containsKey("hid_vid")) config_doc["hid_vid"] = hid_vid; @@ -149,7 +149,7 @@ namespace preferences { // === Fetch values === // enable_msc = config_doc["enable_msc"].as(); - enable_led = config_doc["enable_led"].as(); + //enable_led = config_doc["enable_led"].as(); enable_hid = config_doc["enable_hid"].as(); hid_vid = config_doc["hid_vid"].as(); @@ -205,7 +205,7 @@ namespace preferences { void reset() { enable_msc = false; - enable_led = true; + //enable_led = true; enable_hid = true; hid_vid = "16D0";