Introduction
Introduction Statistics Contact Development Disclaimer Help
seeedfarm: add a quit command and fix the view command - brcon2025-hackathons -…
git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fz…
Log
Files
Refs
Tags
---
commit cf8fffb39e892e8458e279bd69f81f484b05452d
parent 4abec6f4ce6d41ef57a3a1a508bd178c071fc9af
Author: Josuah Demangeon <[email protected]>
Date: Fri, 1 Aug 2025 20:56:33 +0200
seeedfarm: add a quit command and fix the view command
Diffstat:
M seeedfarming/session.sh | 5 +++++
1 file changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/seeedfarming/session.sh b/seeedfarming/session.sh
@@ -31,6 +31,7 @@ while true; do
echo " [p] Get a python prompt on the current script"
echo " [r] Reset the board and remove the script"
echo " [v] View the script"
+ echo " [q] Quit"
echo -n "seeedcluster[$num]>>> "
read action || exit
@@ -67,8 +68,12 @@ while true; do
rm -f "$script"
;;
(v)
+ script=$SEEED_SCRIPTS/ttyACM$num.py
cat "$script"
;;
+ (q)
+ exit
+ ;;
(*)
echo "error: unknown command '$action' selected"
;;
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.