diff --git a/src/layers.cpp b/src/layers.cpp index 0cf9129d..125ca4a4 100644 --- a/src/layers.cpp +++ b/src/layers.cpp @@ -129,9 +129,8 @@ void Layer_::move(uint8_t layer) { void Layer_::on(uint8_t layer) { // If we're trying to turn on a layer that doesn't exist; abort - if (layer >= LayerCount) { + if (LayerCount != 0 && layer >= LayerCount) return; - } bool wasOn = isOn(layer);