Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
80a6e99e17
1 changed files with 6 additions and 2 deletions
|
@ -329,15 +329,19 @@ LedDisplayController::GetSetTextSetParameterExitCode LedDisplayController::getSe
|
||||||
case TextParameter:
|
case TextParameter:
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
if (*value == "")
|
if (*value == "") {
|
||||||
// delete the index
|
// delete the index
|
||||||
|
|
||||||
|
Serial.println("Deleting: " + String(index));
|
||||||
|
|
||||||
for (int i = index; i < this->maximumTextSets; i++)
|
for (int i = index; i < this->maximumTextSets; i++)
|
||||||
{
|
{
|
||||||
if (i > this->maximumTextSets - 1)
|
if (i < this->maximumTextSets - 1)
|
||||||
this->text_sets.sets[i] = this->text_sets.sets[i + 1];
|
this->text_sets.sets[i] = this->text_sets.sets[i + 1];
|
||||||
else
|
else
|
||||||
this->text_sets.sets[i] = this->defaultTextSet;
|
this->text_sets.sets[i] = this->defaultTextSet;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
strncpy(currentTextSet->text, value->c_str(), sizeof(currentTextSet->text));
|
strncpy(currentTextSet->text, value->c_str(), sizeof(currentTextSet->text));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue