#!/bin/bash # SPDX-License-Identifier: MIT # Copyright (c) 2024 John Watts and the LuminaSensum contributors set -e if ! test -e .boardserial; then echo "Please run scripts/findboard.sh!" exit 1 fi SERIAL="$(cat .boardserial)" DEVICE="/dev/serial/by-id/usb-STMicroelectronics_STM32_STLink_${SERIAL}-if02" exec screen "$DEVICE" 115200