Skip to content

Commit

Permalink
Merge pull request #26 from mrv96/patch-1
Browse files Browse the repository at this point in the history
PonyProgFT: allow SNs starting from FT000001
  • Loading branch information
lancos authored Jan 5, 2025
2 parents 316cc30 + 3112b31 commit 8d330b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hardware/PonyProgFT/eeprom/wr_eeprom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ -f "${FILECONF}" ]; then
#rimuoviamo gli zeri inizali lasciandolo in base 10
NUM=$((10#$ZNUM))
#echo ${NUM}
((NUM++))
((NUM++)) || true
NEWSERIAL=`printf "%06u" ${NUM}`
echo "NewSerial: ${NEWSERIAL}"
sed -i.old "s/serial=\"FT[0-9]\+\"/serial=\"FT${NEWSERIAL}\"/g" "${FILECONF}"
Expand Down

0 comments on commit 8d330b4

Please sign in to comment.