mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[Tools] embed_files.sh: Use static attribute on generated char arrays, force LF line ends for script
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user