Commit Graph

4622 Commits

Author SHA1 Message Date
Frank Möhle
e0ad3c4638 robustness improvement: rewind file before writing empty JSON skeleton
prevents creating corrupted JSON
if the previous file content was ``{}``, the result would be ``{"0":{}}`` if the file position is not reset first.
2026-04-05 22:01:33 +02:00
Copilot
72b1f59e42 Fix robustness issue: empty JSON {} in cfg.json or wsec.json (#355)
* Treat empty or effectively-empty configuration files as invalid: restore defaults, optionally fall back to stored settings, and avoid silently using blank configurations.
* Improve presets handling by detecting and recreating empty or undersized preset files so presets are reliably initialized and usable.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
2026-04-05 17:47:33 +02:00
Frank
b20b5a011c sync common.js with upstream
import latest changes to common.js from upstream.
Only needed for 3rd party tools.
2026-03-29 22:16:26 +02:00
Frank
7bd8d5008b bugfix: update Flash Usage after file upload
if we have the flicker-free RMT driver, also update FS usage info when filling /json/state
2026-03-29 22:14:20 +02:00
Frank
f5c11f2e2e DDP debug messages when receiving unsupported packets 2026-03-29 19:25:10 +02:00
Copilot
d9e8203276 DDP input: reject packets with unsupported data type or non-display destination (#5390)
* Fix: reject invalid DDP packets with wrong destination or unsupported data type

Co-authored-by: DedeHai <6280424+DedeHai@users.noreply.github.com>
2026-03-29 19:04:32 +02:00
Will Tatam
b86875e9ea do not keep prompting if there was an error, e.g no wifi 2026-03-28 11:14:57 +01:00
Frank
15c11d94f8 some extra PSRAM infos
unfortunately n7a in esp-idf 4.4.x
2026-03-26 20:48:38 +01:00
Frank
c0cbe89af4 fix misplaced closing bracket 2026-03-26 20:08:20 +01:00
Frank
a70b945bce experimental: more info about PSRAM and Flash
* PSRAM speed and transfer mode (serial only)
* added all possible modes and speed flags (-P4 included)
2026-03-26 19:51:27 +01:00
Frank
9fd2a51cf4 fix for APA102 crash on classic esp32 with PSRAM
On esp32 with PSRAM, one of the SPI hosts (HSPI or VSPI) will be occupied by the system. Application code should never touch this SPI host.
2026-03-26 18:09:35 +01:00
Frank
453c5e6023 HUB75 color re-ordering optimization
only perform color re-ordering when needed.
This allows for better optimization by the compiler.
2026-03-26 12:14:49 +01:00
Frank
d948ec667e fast inline color fading for bus drivers
based on upstream color_fade() and color_scale() by @DedeHai
2026-03-26 12:12:32 +01:00
Troy
d885677896 Merge pull request #349Give HUB75 Color Order Overrides from troyhacks/mdev
Give HUB75 Color Order Overrides
2026-03-25 12:02:03 -04:00
Troy
2aa05cbc86 Default HUB75 color order to RGB 2026-03-25 11:29:16 -04:00
Troy
44d666c8b6 Give HUB75 Color Order Overrides 2026-03-25 09:32:14 -04:00
Frank
50f507fa56 bugfix: prevent _segment_index being misaligned w.r.t. segments vector
prevent that an inactive segment in the segments list causes misalignment between getSegmentID() and actual segments vector.
2026-03-24 15:46:09 +01:00
Will Miles
75e1ade22f Use correct fix for SHA256 hash string
@coderabbitai caught the problem, but its fix suggestion was out to
lunch on this one.  Passing an unsigned char to String.concat() appends
it as a number instead of appending the character.

Instead, mask the unneceeded bits.
2026-03-22 14:43:20 +01:00
Frank Möhle
7a0f093ab1 small robustness improvement for closeFile()
Refactor file closing logic to improve concurrency handling: "Consuming" doCloseFile early reduces the risk that several tasks will try to close the same file.
2026-03-21 23:46:27 +01:00
Frank
11b9b6529c 8266: fix flickering during file write (experimental)
8266 also has problems - file.close() will stall interrupts, so we need to wait a bit until leds were updated
2026-03-21 20:37:53 +01:00
Frank Möhle
afb383d0a2 Fix undefined behavior in bootloader SHA256 hex conversion
Change char to unsigned char to avoid undefined behavior during right-shift operation.
2026-03-21 15:43:06 +01:00
Frank Möhle
2672ed7e51 Update release link to latest version
always point to the latest release
2026-03-12 00:38:00 +01:00
Frank
b5788d3912 colorClouds WLED-MM specific optimizations
* use map2 - more accurate
* use min(max()) instead of constrain - faster
2026-03-11 19:40:34 +01:00
Joachim Dick
f96c2087d9 New smooth effect: Color Clouds (#5268)
* New Effect: Color Clouds

ColorClouds: Random start points for clouds and color

ColorClouds: new config option 'More red'

* ColorClouds: Incorporated review comments

- Support for color palettes
- Use perlin16() instead of inoise16()
- Use cos8_t() instead of cos8()

* ColorClouds: incorporated more review comments

* ColorClouds: incorporated final review comment
2026-03-11 19:26:42 +01:00
Frank
2dedbf469a minor info page updates
* removed core restart reasons (esp restart code is sufficient)
* added time info
* moved repo to last line
2026-03-11 19:02:29 +01:00
Frank Möhle
37946a947b Info page: Total LEDs, GitHub repo, minor re-styling (#5418)
* Info page updates and minor re-styling
  * added GitHub repo (link)
  * added Total LEDs
  *  removed lwip major version on esp32
  * two horizontal lines for better readability

* add rel="noopener noreferrer" for improved security
  * When using target="_blank", it's a security best practice to include rel="noopener noreferrer" to prevent the new page from accessing window.opener.
2026-03-11 18:25:06 +01:00
Frank
49130c9ec9 (chores) cleanup some compiler warnings
* switch-cases that fall through
* potential buffer overflow in improv.cpp
* potentially uninitialized variables in FX.cpp
* potential array out-of-range on segment::col[]
* minor optimization: only apply gamma correction when result is needed
* tag some possibly unused variables with   [[maybe_unused]]
2026-03-11 13:54:58 +01:00
Frank
b994cf5b95 make CHSV32 availeable to effects 2026-03-11 12:37:01 +01:00
Frank
c3c779f8f0 (chores) fix compiler warning (switch case implicitly falls through) 2026-03-11 12:36:36 +01:00
Frank
e3b33c8aa0 import CHSV32 (based on upstream WLED)
thanks @dedehai, works perfectly
2026-03-11 12:24:54 +01:00
Frank
5d370f834f fix for builds with DMX-In support 2026-03-10 18:07:34 +01:00
Frank
e56ce96137 build 2603101 2026-03-10 17:44:50 +01:00
Frank
a906432feb basic support for firmware metadata (upstream 0.15 backport) 2026-03-10 17:42:18 +01:00
Will Tatam
427dc96239 Merge pull request #5214 from willmmiles/0_15-update-structure-check
Remove OTA metadata structure version block
2026-03-10 16:27:03 +01:00
Will Tatam
1e77d89dcc Merge pull request #5410 from willmmiles/cleanup-bootloader-sha-0_15
Bootloader SHA fixes, 0.15 edition
2026-03-10 16:26:46 +01:00
Frank
ec0078c4df Upgrade reporting: add PSRAM size (MM specific) 2026-03-10 15:25:14 +01:00
Will Tatam
d90549f07a Merge pull request #5172 from wled/copilot/update-install-prompt-messaging
Simplify upgrade reporting prompt with checkbox-based preference
2026-03-10 15:20:34 +01:00
Frank
32bc474055 spots effect bugfix, take 2
next try: make sure that the strip is filled, and all gaps are equal
2026-03-04 00:17:43 +01:00
Frank
7f889763d1 flow effect bugfix
effect was showing blak when using default palette
2026-03-03 23:13:34 +01:00
Damian Schneider
a0c0a31480 Fix start & end of segment not "flowing" in Flow FX (#5392) 2026-03-03 22:22:35 +01:00
GLEDOPTO
9dae76bd63 add 3 more standard buttons to ESP-NOW Remote (#5400)
maps codes 20, 21 and 22 to presets 5, 6 and 7
2026-03-03 21:57:10 +01:00
Frank
fa30c39a38 bugfix: prevent array bounds violations due to short WS payload data
Guard against zero-length binary payloads before dereferencing data[0] or data[1]
2026-03-01 22:33:29 +01:00
Frank
f3eda7027f build 2602221 2026-02-22 20:42:54 +01:00
Frank
2914daa3aa fix short black-out when a playlist advances (WLEDMM specific)
* do not call strip.show(), just shedule a "show()" in the next main loop.
* experimental fix for inconsistent state when loading a preset (see upstream https://github.com/wled/WLED/issues/5200)
2026-02-22 20:37:39 +01:00
Frank
ae3a796f8d build 2602201 2026-02-20 18:06:03 +01:00
Frank
325ea2798c oops, missed a few lines in the last commit 2026-02-20 16:03:32 +01:00
Frank
a1555c43a0 move ws LEDs preview buffer into PSRAM
* set DYNAMICBUFFER_USE_PSRAM in build_flags => enable PSRAM support in AsyncWebServerWLED
2026-02-20 15:26:03 +01:00
Frank
269a6a2a86 another "heap too low" fix
fixes the fix
2026-02-20 15:20:15 +01:00
Frank
afeccc60fb ram alloc tuning
* relax checks in d_malloc_only, allow RTCRAM (avoids "unexpected end of JSON input) errors
* debug messages improved
 * set errorflag when d_malloc() or d_calloc() failed
2026-02-20 15:07:14 +01:00
Frank
75c6fe1606 fix "Heap too low!" logic
"step1" (flush udp) was never activated (stupid logic error)
2026-02-20 14:42:39 +01:00