Skip to content

Commit

Permalink
Remove old multi mapping path
Browse files Browse the repository at this point in the history
  • Loading branch information
Pelsin committed May 4, 2024
1 parent 2f0892f commit 77c30d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/configs/webconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ using namespace std;

extern struct fsdata_file file__index_html[];

const static char* spaPaths[] = { "/backup", "/display-config", "/led-config", "/pin-mapping", "/multi-mapping", "/settings", "/reset-settings", "/add-ons", "/custom-theme", "/macro", "/peripheral-mapping" };
const static char* spaPaths[] = { "/backup", "/display-config", "/led-config", "/pin-mapping", "/settings", "/reset-settings", "/add-ons", "/custom-theme", "/macro", "/peripheral-mapping" };
const static char* excludePaths[] = { "/css", "/images", "/js", "/static" };
const static uint32_t rebootDelayMs = 500;
static string http_post_uri;
Expand Down Expand Up @@ -823,7 +823,7 @@ std::string getButtonLayoutDefs()
for (layoutCtr = _ButtonLayout_MIN; layoutCtr < _ButtonLayout_ARRAYSIZE; layoutCtr++) {
writeDoc(doc, "buttonLayout", LayoutManager::getInstance().getButtonLayoutName((ButtonLayout)layoutCtr), layoutCtr);
}

for (layoutCtr = _ButtonLayoutRight_MIN; layoutCtr < _ButtonLayoutRight_ARRAYSIZE; layoutCtr++) {
writeDoc(doc, "buttonLayoutRight", LayoutManager::getInstance().getButtonLayoutRightName((ButtonLayoutRight)layoutCtr), layoutCtr);
}
Expand All @@ -837,7 +837,7 @@ std::string getButtonLayouts()
const LEDOptions& ledOptions = Storage::getInstance().getLedOptions();
const DisplayOptions& displayOptions = Storage::getInstance().getDisplayOptions();
uint16_t elementCtr = 0;

LayoutManager::LayoutList layoutA = LayoutManager::getInstance().getLayoutA();
LayoutManager::LayoutList layoutB = LayoutManager::getInstance().getLayoutB();

Expand Down Expand Up @@ -898,7 +898,7 @@ std::string getButtonLayouts()
writeDoc(ele, "parameters", "closed", layoutB[elementCtr].parameters.closed);
writeDoc(doc, "displayLayouts", "buttonLayoutRight", std::to_string(elementCtr), ele);
}

return serialize_json(doc);
}

Expand Down

0 comments on commit 77c30d6

Please sign in to comment.