Skip to content

Commit

Permalink
Update pico-fido-patch-vidpid.sh
Browse files Browse the repository at this point in the history
Match any previous VID:PID in the image and replace with the new ones.
  • Loading branch information
sylvainpelissier authored Nov 8, 2023
1 parent 2e5b8f4 commit 8056e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pico-fido-patch-vidpid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fi
LITTLE_VID="\x${VID:2:2}\x${VID:0:2}"
LITTLE_PID="\x${PID:2:2}\x${PID:0:2}"

perl -pi -e "s/\xfe\xca\x31\x42\x$VERSION_MINOR\x$VERSION_MAJOR\x01\x02\x03\x01/$LITTLE_VID$LITTLE_PID\x$VERSION_MINOR\x$VERSION_MAJOR\x01\x02\x03\x01/" $UF2_FILE_OF
perl -pi -e "s/[\x00-\xff]{4}\x$VERSION_MINOR\x$VERSION_MAJOR\x01\x02\x03\x01\x00\x00/$LITTLE_VID$LITTLE_PID\x$VERSION_MINOR\x$VERSION_MAJOR\x01\x02\x03\x01\x00\x00/" $UF2_FILE_OF

echo "Done!"
echo ""
Expand Down

0 comments on commit 8056e64

Please sign in to comment.