mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
UV Pro - Re-implemented BTECH UV Pro command to support three modes following a connection: axcall, QtTermTCP and Winlink
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 6 November 2024
|
||||
# Updated : 17 February 2025
|
||||
# Updated : 15 March 2025
|
||||
# Purpose : Configures the system for a specific mode of operation
|
||||
|
||||
# Use a simple text file to save the state of the last mode selected
|
||||
@@ -127,18 +127,6 @@ select_term_mode () {
|
||||
fi
|
||||
}
|
||||
|
||||
select_winlink_mode () {
|
||||
winlink_mode=()
|
||||
|
||||
BLUETOOTH_TNC_CHECK=$(ps -ef | grep "[r]fcomm connect")
|
||||
if [[ $? -eq 0 ]]; then
|
||||
et-log "AX.25 over Bluetooth connected. Configuring Winlink for native AX.25"
|
||||
start_and_wait_for_service et-service-winlink-native-packet
|
||||
min http://localhost:8080
|
||||
exit 0
|
||||
fi
|
||||
}
|
||||
|
||||
# Build list of options
|
||||
options=()
|
||||
options+=("${MODE_ID_NONE}" "No mode selected")
|
||||
@@ -248,7 +236,7 @@ if [ $exit_status -eq 0 ]; then
|
||||
min http://localhost:8080
|
||||
;;
|
||||
${MODE_ID_WINLINK_PACKET})
|
||||
select_winlink_mode
|
||||
winlink_mode
|
||||
start_and_wait_for_service et-service-direwolf-simple
|
||||
start_and_wait_for_service et-service-winlink-packet
|
||||
min http://localhost:8080
|
||||
|
||||
Reference in New Issue
Block a user