Skip to content

Commit

Permalink
Turn back EDIDs larger than 256 B
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Nagorny committed Dec 19, 2023
1 parent 2a005d9 commit 58cc87f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/linuxhw_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ function decoded_to_binary {
done
if [ "$IS_IGNORED" = "false" ]; then
cat "$file" | grep -E '^([a-f0-9]{32}|[a-f0-9 ]{47})$' | tr -d '[:space:]' | xxd -r -p > "$file".bin
# Also ignore EDIDs larger than 256 bytes
if [[ $(wc -c "${file}.bin" | cut -d' ' -f1) -lt 257 ]]; then
echo "${file}.bin" >> "${BINARY_PATH}"
fi
echo "${file}.bin" >> "${BINARY_PATH}"
fi
done
}
Expand Down

0 comments on commit 58cc87f

Please sign in to comment.