diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vsp-lib.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index ee92636..c0eb1ca 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -94,6 +94,14 @@ vsp1_set_control() { $yavta --no-query -w "$control $value" $subdev | ./logger.sh "$entity" >> $logfile } +vsp1_reset_controls() { + local entity=$1 + local subdev=$(vsp1_entity_subdev $entity) + + echo "Resetting controls on $subdev" | ./logger.sh "$entity" >> $logfile + $yavta --no-query --reset-controls $subdev | ./logger.sh "$entity" >> $logfile +} + # ----------------------------------------------------------------------------- # Reference frame generation # @@ -1074,6 +1082,9 @@ test_init() { dev=$(vsp1_device $mdev) echo "Using device $mdev ($dev)" | ./logger.sh config >> $logfile + # Reset any rotation or flipping controls + vsp1_reset_controls wpf.0 + vsp_runner=./vsp-runner.sh } |