remove unused incremental increase/decrease of brightness
This commit is contained in:
parent
6e608da1f0
commit
dbaae667ec
@ -39,7 +39,7 @@ namespace Devices {
|
||||
[](const char* msg) {
|
||||
Display::brightness = String{ msg }.toInt();
|
||||
}
|
||||
}).withMin(Display::Brightness::MIN).withMax(Display::Brightness::MAX).withStep(Display::Brightness::STEP).restoreStateFromCommand().build();
|
||||
}).withMin(Display::Brightness::MIN).withMax(Display::Brightness::MAX).withStep(1).restoreStateFromCommand().build();
|
||||
|
||||
auto hourFormatMqtt = Builder<Switch>::instance(new Switch{ "Format 24h", "format_24h",
|
||||
[](const char* msg) {
|
||||
|
||||
@ -60,7 +60,6 @@ namespace Display {
|
||||
struct Brightness {
|
||||
static constexpr uint8 MIN = 0;
|
||||
static constexpr uint8 MAX = 15;
|
||||
static constexpr uint8 STEP = 1;
|
||||
static constexpr uint8 DAY = 11;
|
||||
static constexpr uint8 NIGHT = MIN;
|
||||
void (*changedCallback)();
|
||||
@ -75,10 +74,6 @@ namespace Display {
|
||||
return current;
|
||||
}
|
||||
|
||||
void change(bool increase) {
|
||||
increase ? *this = current + STEP : *this = current - STEP;
|
||||
}
|
||||
|
||||
private:
|
||||
uint8 current = NIGHT;
|
||||
} brightness;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user