Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tools/op.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,11 @@ function op_ssh() {
op_run_command tools/scripts/ssh.py "$@"
}

function op_som_debug() {
op_before_cmd
op_run_command panda/scripts/som_debug.sh $@
}

function op_check() {
VERBOSE=1
op_before_cmd
Expand Down Expand Up @@ -421,6 +426,7 @@ function op_default() {
echo -e " ${BOLD}clip${NC} Run clip (linux only)"
echo -e " ${BOLD}adb${NC} Run adb shell"
echo -e " ${BOLD}ssh${NC} comma prime SSH helper"
echo -e " ${BOLD}som-debug${NC} SOM serial debug console via panda"
echo ""
echo -e "${BOLD}${UNDERLINE}Commands [Testing]:${NC}"
echo -e " ${BOLD}sim${NC} Run openpilot in a simulator"
Expand Down Expand Up @@ -481,6 +487,7 @@ function _op() {
post-commit ) shift 1; op_install_post_commit "$@" ;;
adb ) shift 1; op_adb "$@" ;;
ssh ) shift 1; op_ssh "$@" ;;
som-debug ) shift 1; op_som_debug "$@" ;;
* ) op_default "$@" ;;
esac
}
Expand Down
Loading