Skip to content

Commit

Permalink
[devkit] Don't return 1
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed May 12, 2024
1 parent 3da8eb1 commit 37e65dd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -438,21 +438,17 @@ function detect_mark1_device() {
atmega328p="$(avrdude -C +"$RUN_AS_HOME"/.avrduderc -p atmega328p -c linuxgpio -U signature:r:-:i -F 2>>"$LOG_FILE" | head -1)"
if [ "$atmega328p" == "$ATMEGA328P_SIGNATURE" ]; then
DETECTED_DEVICES+=("atmega328p")
return 0
fi
return 1
}

# This function checks if attiny1614 I2C device is present, this is only
# triggered when a tas5806 I2C device is detected.
function detect_devkit_device() {
if i2c_get "${SUPPORTED_DEVICES["attiny1614"]}"; then
DETECTED_DEVICES+=("attiny1614")
return 0
fi
# If attiny1614 is not detected then this is a Mark II device and not
# a DevKit device so we force back the DETECTED_DEVICES variable
# to tas5806.
DETECTED_DEVICES+=("tas5806")
return 1
}

0 comments on commit 37e65dd

Please sign in to comment.