Skip to content

Commit

Permalink
Updated webconfig.cpp to fix flipping display bug (OpenStickCommunity…
Browse files Browse the repository at this point in the history
…#767)

This update fixes a bug in webconfig.cpp which did not allow you to `mirror` or `mirror + flip` a display.  This is because originally we only had two values (`none` and `flip`) and they were set in webconfig.cpp as 0-1.  That has been removed and now all four modes can be used.
  • Loading branch information
TheTrainGoes authored Jan 3, 2024
1 parent 5b72339 commit 57f099c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/configs/webconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ std::string getDisplayOptions() // Manually set Document Attributes for the disp
writeDoc(doc, "enabled", displayOptions.enabled ? 1 : 0);
writeDoc(doc, "i2cAddress", displayOptions.i2cAddress);
writeDoc(doc, "i2cBlock", displayOptions.i2cBlock);
writeDoc(doc, "flipDisplay", displayOptions.flip ? 1 : 0);
writeDoc(doc, "flipDisplay", displayOptions.flip);
writeDoc(doc, "invertDisplay", displayOptions.invert ? 1 : 0);
writeDoc(doc, "buttonLayout", displayOptions.buttonLayout);
writeDoc(doc, "buttonLayoutRight", displayOptions.buttonLayoutRight);
Expand Down

0 comments on commit 57f099c

Please sign in to comment.