Skip to content

Commit

Permalink
fixed trinket patch script
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 21, 2024
1 parent 7a64dce commit 4c70e5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rewrite_trinket_source.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

FILE_PATH="$HOME/.arduino15/packages/adafruit/hardware/samd/1.7.14/cores/arduino/USB/CDC.cpp"
FILE_PATH="$HOME/.arduino15/packages/adafruit/hardware/samd/1.7.16/cores/arduino/USB/CDC.cpp"

# Check if the file exists
if [ ! -f "$FILE_PATH" ]; then
echo "Error: File does not exist."
exit 1
fi
# Read the specific line and check its content
CURRENT_LINE=$(sed -n '258p' "$FILE_PATH")
Expand Down

0 comments on commit 4c70e5a

Please sign in to comment.