[Tools] embed_files.sh: Use static attribute on generated char arrays, force LF line ends for script

This commit is contained in:
Ton Huisman
2022-09-03 11:06:41 +02:00
parent 09afb82abb
commit 4cb7f34e01
+1 -1
View File
@@ -54,7 +54,7 @@ function ascii2hexCstyle {
file_name=$(constFileName $1)
result=$(cat /tmp/converter.temp | hexdump -ve '1/1 "0x%.2x,"')
result=$(echo $result | sed 's/,$//')
echo "const char DATA_${file_name}[] PROGMEM = {$result,0};"
echo "static const char DATA_${file_name}[] PROGMEM = {$result,0};"
echo
echo
}