Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bin/oref0-mmtune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
#Read and zero pad best frequency from mmtune, and store/set it so Go commands can use it,
#but only if it's not the default frequency
if [ -s monitor/mmtune.json ]; then
if $(jq -e .usedDefault monitor/mmtune.json); then
if ! $(jq -e .usedDefault monitor/mmtune.json); then
freq=`jq -e .setFreq monitor/mmtune.json | tr -d "."`
while [ ${#freq} -ne 9 ];
do
Expand Down
9 changes: 5 additions & 4 deletions bin/oref0-pump-loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -484,12 +484,13 @@ function prep {
upto30s=$(head -1 /tmp/wait_for_silence)
upto45s=$(head -1 /tmp/wait_for_silence)
fi
#We don't need to get the tty port anymore...
# read tty port from preferences
eval $(get_pref_string .ttyport | sed "s/ //g")
#eval $(get_pref_string .ttyport | sed "s/ //g")
# if that fails, try the Explorer board default port
if [ -z $port ]; then
port=/dev/spidev5.1
fi
#if [ -z $port ]; then
# port=/dev/spidev5.1
#fi

# necessary to enable SPI communication over edison GPIO 110 on Edison + Explorer Board
[ -f /sys/kernel/debug/gpio_debug/gpio110/current_pinmux ] && echo mode0 > /sys/kernel/debug/gpio_debug/gpio110/current_pinmux
Expand Down