Fix PN532 transport and NFC tag handling.
Tighten PN532 framing and NFC access locking so scan, read, write, and raw operations behave reliably on hardware, and correct Classic versus Type 2 tag classification so common cards hit the right code paths. Refresh the embedded web assets and launcher files to match the corrected firmware behavior. Made-with: Cursor
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
# Flash PN532 toolkit. Requires ESP-IDF 5.x in PATH (run export.sh first).
|
||||
# Compatibility wrapper around the repo-root launcher.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
PORT="${ESPPORT:-${1:-/dev/cu.usbserial-A5069RR4}}"
|
||||
cd "$ROOT"
|
||||
if ! command -v idf.py >/dev/null 2>&1; then
|
||||
echo "idf.py not found. Source your ESP-IDF export.sh, then re-run:" >&2
|
||||
echo " ESPPORT=$PORT $0" >&2
|
||||
exit 1
|
||||
PORT="${ESPPORT:-${1:-}}"
|
||||
|
||||
if [ -n "$PORT" ]; then
|
||||
exec "$ROOT/../start-firmware.sh" --port "$PORT" --flash-only
|
||||
fi
|
||||
idf.py -p "$PORT" flash
|
||||
|
||||
exec "$ROOT/../start-firmware.sh" --flash-only
|
||||
|
||||
Reference in New Issue
Block a user