Skip to content

Commit

Permalink
fix validateRotationValue
Browse files Browse the repository at this point in the history
  • Loading branch information
rennancockles committed Dec 31, 2024
1 parent b816113 commit 763ffcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void BruceConfig::setRotation(int value) {


void BruceConfig::validateRotationValue() {
if (rotation<0 && rotation>3) rotation = 1;
if (rotation < 0 || rotation > 3) rotation = 1;
}


Expand Down Expand Up @@ -448,7 +448,7 @@ void BruceConfig::addQrCodeEntry(const String& menuName, const String& content)
}

void BruceConfig::removeQrCodeEntry(const String& menuName) {
qrCodes.erase(std::remove_if(qrCodes.begin(), qrCodes.end(),
qrCodes.erase(std::remove_if(qrCodes.begin(), qrCodes.end(),
[&](const QrCodeEntry& entry) { return entry.menuName == menuName; }), qrCodes.end());
saveFile();
}

0 comments on commit 763ffcc

Please sign in to comment.