Skip to content

After saving segment with a custom name to a preset a preset cannot be saved with the default segment name to show time using scrolling text. #3526

@eoncire

Description

@eoncire

What happened?

I have a 16x16 2d matrix set up which I am using to display text. I created a preset with a named segment "Hello" to display that text when the preset is loaded. I created another preset after I blanked / reset the segment name hoping to have a preset to return to the time display. It appears that when the preset is saved with a blank segment name there is no "n" value in the preset JSON. I have tried to modify the preset JSON before saving to add a "blank" "n" value but it did not work.

To Reproduce Bug

Using a 2d matrix and the "Scrolling Text" effect;

  1. Give the primary (only) segment a name of "Hello" and click the check box to apply.
    a. The matrix displays "Hello"
  2. Create a new preset in Error Compiling #1 and save.
  3. Erase / blank the segment name and click the check box to apply.
    b. The matrix displays the time / date
  4. Create a new preset in ESP32 support & flickering #2 and save.
  5. Load preset Error Compiling #1 and the matrix shows the text "Hello"
  6. Load preset ESP32 support & flickering #2 and nothing changes.

Expected Behavior

When loading preset #2 in the above example the time / date should be shown.

Install Method

Binary from WLED.me

What version of WLED?

0.14.0

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedThe bug is reproducable and confirmedfixed in sourceThis issue is unsolved in the latest release but fixed in masterquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions