show SECoP/cfg for recorders

+ auto select stick when stick_menu inf <name>.config
  starts with <name>
This commit is contained in:
2025-06-23 12:59:10 +02:00
parent 6a191e49da
commit 35abc1c182
4 changed files with 18 additions and 6 deletions

View File

@ -254,10 +254,10 @@ proc check_config {service args} {
}
proc activate_stick {} {
set name [hval /device/stick_label]
set prev [hval /device/stick_label]
frappy_config stick secop.stick
# stick_label was changed - set it again
device stick_label $name
device stick_label $prev
}
proc activate_addon {} {
@ -272,7 +272,7 @@ proc sea_recorder {main stick addons} {
samenv none
cfg_env makeitem _secop $uri
frappy_config stick secop.config
device name_label $name
device name_label "SECoP/$name"
set defer _secop
}
if {$stick ne "0"} {
@ -280,7 +280,7 @@ proc sea_recorder {main stick addons} {
if {$name eq ""} { set name $uri }
addon stick none
cfg_env makeitem _secopstick $uri
device stick_label $name
device stick_label "SECoP/$name"
if {$defer eq "0"} {
set defer _secopstick
frappy_config stick secop.stick