From d2af5c2448d7d2176528dce53e89fe92ebecaec5 Mon Sep 17 00:00:00 2001 From: aquazx20 Date: Sat, 29 Apr 2023 19:00:17 -0600 Subject: [PATCH] Modifier class updated. --- DisplayESP32.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DisplayESP32.ino b/DisplayESP32.ino index 2af55b3..21726f5 100644 --- a/DisplayESP32.ino +++ b/DisplayESP32.ino @@ -419,7 +419,7 @@ class Modifier{ //ContentType (2) int *value; int max; int min; - int interval; + int step; int previousScreen = 0; int previousContentType = 0; @@ -430,7 +430,7 @@ class Modifier{ //ContentType (2) this->value = value; this->max = max; this->min = min; - this->interval = interval; + this->step = step; } void drawModifier(){ @@ -448,14 +448,14 @@ class Modifier{ //ContentType (2) } void increaseValue(){ - if((*this->value + interval) <= this->max){ - *this->value += interval; + if((*this->value + step) <= this->max){ + *this->value += step; } } void decreaseValue(){ - if((*this->value - interval) >= this->min){ - *this->value -= interval; + if((*this->value - step) >= this->min){ + *this->value -= step; } }