Remove backup brightness feature (#1180)

This feature is not needed and is probably more likely to cause issues. It's better to just use brightnessController.Set(settingsController.GetBrightness());
This commit is contained in:
Riku Isokoski
2022-06-18 12:54:41 +03:00
committed by GitHub
parent 9b775c6a91
commit 95ff285991
4 changed files with 12 additions and 31 deletions

View File

@@ -74,14 +74,6 @@ BrightnessController::Levels BrightnessController::Level() const {
return level;
}
void BrightnessController::Backup() {
backupLevel = level;
}
void BrightnessController::Restore() {
Set(backupLevel);
}
void BrightnessController::Step() {
switch (level) {
case Levels::Low:
@@ -123,4 +115,4 @@ const char* BrightnessController::ToString() {
default:
return "???";
}
}
}

View File

@@ -15,15 +15,11 @@ namespace Pinetime {
void Higher();
void Step();
void Backup();
void Restore();
const char* GetIcon();
const char* ToString();
private:
Levels level = Levels::High;
Levels backupLevel = Levels::High;
};
}
}