Skip to content
Commit 0a4e2e38 authored by Luca Burelli's avatar Luca Burelli Committed by Daniel DeGrasse
Browse files

scripts: dts: dtlib: improve formatting of long arrays



Split long arrays into multiple lines to improve readability of the
output DTS file. A new line is started when the array data exceeds
80 characters.

Add a few test entries to verify the new behavior.

Note: the F821 linter suppression prevents flagging 'array_start' and
'array_newline' as undefined variables. This is because these variables
are initialized when an opening brace is output, which is necessarily
before any element in a byte or prop array. A sequence of markers not
following this pattern would indicate a bug in the DTS parsing code.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent f26a8c0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment