driver spb16ch: modificato mappatura rele e script python da lanciare per l'apertura/chiusura dei rele

This commit is contained in:
lejubila
2017-08-30 23:13:34 +02:00
parent 2f7b286424
commit efbd3c687d
2 changed files with 20 additions and 20 deletions

View File

@@ -23,12 +23,12 @@ function drv_spb16ch_rele_open {
message_write "warning" "$message"
fi
local channel_num=${rele_data:0:2}
local rele_num=${rele_data:2:2}
local rele_num=${rele_data:2:3}
echo channel_num=$channel_num
echo rele_num=$rele_num
$DIR_SCRIPT/drv/spb16ch/scripts/mux_channel.py 72 $channel_num
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_active.py 72 $rele_num 0
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_init.py 72 $rele_num 0
}
@@ -47,12 +47,12 @@ function drv_spb16ch_rele_close {
message_write "warning" "$message"
fi
local channel_num=${rele_data:0:2}
local rele_num=${rele_data:2:2}
local rele_num=${rele_data:2:3}
echo channel_num=$channel_num
echo rele_num=$rele_num
$DIR_SCRIPT/drv/spb16ch/scripts/mux_channel.py 72 $channel_num
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_active.py 72 $rele_num 1
$DIR_SCRIPT/drv/spb16ch/scripts/gpo_init.py 72 $rele_num 1
}