mirror of
https://github.com/nortakales/flipper-zero-tonies.git
synced 2025-12-06 06:45:05 +01:00
Fix last commit
This commit is contained in:
parent
5cbce46cd1
commit
e4b244e0db
2 changed files with 4 additions and 83 deletions
|
|
@ -58,9 +58,10 @@ while read -r filename; do
|
|||
fi
|
||||
done
|
||||
|
||||
# The likelihood of two blocks of 00 in data content is almost impossible,
|
||||
# so use that as a check for when the full data is not read
|
||||
if echo "$content" | awk '/Data Content:( [A-F0-9]{2})* 00 00( [A-F0-9]{2})*/ { found=1 } END { exit !found }'; then
|
||||
# It turns out that there is at least one valid Tonies with `00 00 00 00` in the data
|
||||
# so now we can just check for one more `00` block than that one and hope it still catches
|
||||
# partially read Tonies
|
||||
if echo "$content" | awk '/Data Content:( [A-F0-9]{2})* 00 00 00 00 00( [A-F0-9]{2})*/ { found=1 } END { exit !found }'; then
|
||||
echo "$filename"
|
||||
echo " Full data not read"
|
||||
ERROR_FOUND=1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue