[Embed Files] Append zero termination

This commit is contained in:
Saverio Cisternino
2018-11-28 13:26:34 +01:00
parent 52c1e1243e
commit a3aa944988
+1 -1
View File
@@ -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 {