Revert "Use Layer.highest() instead of Layer.top()"

This reverts commit f78a355760, because we are
renaming `Layer.highest()` to `Layer.top()`.
pull/389/head
Gergely Nagy 7 years ago
parent f78a355760
commit 7a582f3c4b

@ -43,12 +43,12 @@ void ColormapEffect::max_layers(uint8_t max_) {
}
void ColormapEffect::onActivate(void) {
last_highest_layer_ = Layer.highest();
last_highest_layer_ = Layer.top();
::LEDPaletteTheme.updateHandler(map_base_, last_highest_layer_);
}
void ColormapEffect::update(void) {
if (Layer.highest() == last_highest_layer_)
if (Layer.top() == last_highest_layer_)
return;
onActivate();

Loading…
Cancel
Save