#!/usr/bin/env bash # Build + flash the firmware to the discovered DUT. Refuses ambiguous devices. set -euo pipefail cd "$(dirname "$0")/.." eval "$(./tools/discover_devices.sh)" echo "Flashing DUT: $DUT_PORT" >&2 cd firmware idf.py build idf.py -p "$DUT_PORT" flash