feat: Makefile for running the expect script

This is only needed to parameterize the filename.
This commit is contained in:
Martin Kennedy 2025-07-26 16:53:27 -04:00
parent 1a29951635
commit 5200177db9
2 changed files with 4 additions and 1 deletions

3
Makefile Normal file
View File

@ -0,0 +1,3 @@
.PHONY: run
run: ./ap3825i.expect
env OUTPUT_LOG_FILE=$(shell date +%Y-%m-%d_%H-%M-%S).date.log ./ap3825i.expect

View File

@ -5,7 +5,7 @@ exp_internal 1
set send_slow {1 0.005}
spawn picocom -b 115200 /dev/ttyUSB1 --logfile typescript
spawn picocom -b 115200 /dev/ttyUSB1 --logfile $env(OUTPUT_LOG_FILE)
set term_id $spawn_id
spawn ./toggle_jg928a_port.sh
set spawn_id $term_id