Files
WLED_MM_Infinity/wled00
Frank 86b0eeafb7 Ledmaps loading bugfix (wrong size, memory corruption)
* File.readbytesuntil does not terminate strings. So the string buffer needs to be filled with zero's before reading.
* fix crashes (mem corruption) when ledmap file has too many / too few entries.
* initialize unused map places with "identity" (same led) mapping

before fix:
> Reading LED map from /ledmap1.json
> ("width": 60edmap1.json)  ("height": 90edmap1.json)
> resetSegments 1 60x90
> allocLeds (0,0 to 60,90), 16200 from 0
> allocLeds (0,0 to 60,90), 16200 from 6
> deserializeMap 60 x 90 customMappingTable alloc 5400 from 0

after:
> Reading LED map from /ledmap1.json
> ("width": 60)  ("height": 9)
> resetSegments 1 60x9
> allocLeds (0,0 to 60,9), 1620 from 0
> allocLeds (0,0 to 60,9), 1620 from 6
> deserializeMap 60 x 9
> deserializemap customMappingTable alloc 540 from 0
2024-02-20 15:10:25 +01:00
..
2024-02-10 17:10:15 +00:00
2023-12-12 14:48:51 +01:00
2024-01-16 13:27:42 +00:00
2024-02-08 23:02:10 +01:00
2023-10-22 20:32:46 +02:00
2024-01-16 20:13:52 +00:00
2024-01-26 17:08:37 +01:00
2024-02-10 17:32:10 +00:00
2024-02-10 17:32:10 +00:00
2023-11-27 18:19:31 +01:00
2024-02-10 17:32:10 +00:00
2024-01-16 18:33:24 +00:00
2024-02-10 17:32:10 +00:00
2023-01-06 09:24:29 +01:00
2024-01-29 16:07:54 +01:00
2023-03-22 16:31:07 +01:00
2023-05-30 16:09:51 +02:00
2023-08-20 18:53:35 +02:00
2023-11-27 17:52:27 +01:00
2023-12-29 17:23:46 +01:00
2024-01-16 13:27:42 +00:00
2023-01-06 09:24:29 +01:00
2023-01-06 09:24:29 +01:00
2022-03-20 22:12:18 +01:00
2024-02-12 21:53:59 +01:00
2024-02-12 21:51:23 +01:00
2024-02-18 16:59:03 +01:00
2024-01-16 13:27:42 +00:00