From 80ebf4af17ad86751a6ccc115ee4baa2a521a080 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 20 Aug 2024 20:04:25 -0700 Subject: [PATCH] fixed trinket patch script --- rewrite_trinket_source.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rewrite_trinket_source.sh b/rewrite_trinket_source.sh index d950ca6211..f04e17b804 100644 --- a/rewrite_trinket_source.sh +++ b/rewrite_trinket_source.sh @@ -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")