mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Embed Files] Append zero termination
This commit is contained in:
+1
-1
@@ -49,7 +49,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};"
|
||||
echo "const char DATA_${file_name}[] PROGMEM = {$result,0};"
|
||||
}
|
||||
|
||||
function constFileName {
|
||||
|
||||
Reference in New Issue
Block a user