show SECoP/cfg for recorders
+ auto select stick when stick_menu inf <name>.config starts with <name>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user