driver spb16ch: corretto sistema di attivazione schede
This commit is contained in:
@@ -27,7 +27,7 @@ function drv_spb16ch_rele_open {
|
||||
local rele_num=${rele_data:5:3}
|
||||
local board_id=${rele_data:9:1}
|
||||
|
||||
drv_spb16ch_board_enable $board_id
|
||||
#drv_spb16ch_board_enable $board_id
|
||||
|
||||
echo address_num=$address_num
|
||||
echo channel_num=$channel_num
|
||||
@@ -35,7 +35,9 @@ function drv_spb16ch_rele_open {
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/mux_channel.py $address_num $channel_num
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_init.py $address_num $rele_num 0
|
||||
|
||||
drv_spb16ch_board_disable $board_id
|
||||
# Disabilito il mux
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/mux_disable.py $address_num
|
||||
#drv_spb16ch_board_disable $board_id
|
||||
|
||||
}
|
||||
|
||||
@@ -58,7 +60,7 @@ function drv_spb16ch_rele_close {
|
||||
local rele_num=${rele_data:5:3}
|
||||
local board_id=${rele_data:9:1}
|
||||
|
||||
drv_spb16ch_board_enable $board_id
|
||||
#drv_spb16ch_board_enable $board_id
|
||||
|
||||
echo address_num=$address_num
|
||||
echo channel_num=$channel_num
|
||||
@@ -66,7 +68,9 @@ function drv_spb16ch_rele_close {
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/mux_channel.py $address_num $channel_num
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_init.py $address_num $rele_num 1
|
||||
|
||||
drv_spb16ch_board_disable $board_id
|
||||
# Disabilito il mux
|
||||
$DIR_SCRIPT/drv/spb16ch/scripts/mux_disable.py $address_num
|
||||
#drv_spb16ch_board_disable $board_id
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user