From 426ccab0d26c7ebed84011f6e036ff137b80d01a Mon Sep 17 00:00:00 2001 From: lejubila Date: Thu, 3 Aug 2017 23:43:06 +0200 Subject: [PATCH] continua modifiche per gestione driver --- drv/sample/close.include.sh | 11 ----------- drv/sample/open.include.sh | 11 ----------- drv/sample/releopenclose.include.sh | 22 ++++++++++++++++++++++ include/.drv.include.sh.swp | Bin 12288 -> 0 bytes include/drv.include.sh | 6 +++++- 5 files changed, 27 insertions(+), 23 deletions(-) delete mode 100644 drv/sample/close.include.sh delete mode 100644 drv/sample/open.include.sh create mode 100644 drv/sample/releopenclose.include.sh delete mode 100644 include/.drv.include.sh.swp diff --git a/drv/sample/close.include.sh b/drv/sample/close.include.sh deleted file mode 100644 index c86bb21..0000000 --- a/drv/sample/close.include.sh +++ /dev/null @@ -1,11 +0,0 @@ -# -# Questa funzione viene richiamata da "ev_close" di piGarden -# -# $1 identificativo relè da chiudere -# -function drv_sample_close { - - echo "$(date) drv_sample_close $1" >> /tmp/piGarden.drv.sample - -} - diff --git a/drv/sample/open.include.sh b/drv/sample/open.include.sh deleted file mode 100644 index 06ebb82..0000000 --- a/drv/sample/open.include.sh +++ /dev/null @@ -1,11 +0,0 @@ -# -# Questa funzione viene richiamata da "ev_open" di piGarden -# -# $1 identificativo relè da aprire -# -function drv_sample_open { - - echo "$(date) drv_sample_open $1" >> /tmp/piGarden.drv.sample - -} - diff --git a/drv/sample/releopenclose.include.sh b/drv/sample/releopenclose.include.sh new file mode 100644 index 0000000..3547b02 --- /dev/null +++ b/drv/sample/releopenclose.include.sh @@ -0,0 +1,22 @@ +# +# Apertura rele +# +# $1 identificativo relè da aprire +# +function drv_sample_rele_open { + + echo "$(date) drv_sample_rele_open $1" >> /tmp/piGarden.drv.sample + +} + +# +# Chiusura rele +# +# $1 identificativo relè da chiudere +# +function drv_sample_rele_close { + + echo "$(date) drv_sample_rele_close $1" >> /tmp/piGarden.drv.sample + +} + diff --git a/include/.drv.include.sh.swp b/include/.drv.include.sh.swp deleted file mode 100644 index 997484f2de16e35404602b66dc1b043b2a18f221..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2L2DC16vw9?#DG;%JPI${g|=#vT16$YP^qN^)Rvl7B$RZzJKKydyX)>ILfaJS zP4uF-p8O1c15bJr4}Jn~dh_f-|C3~E1)=uX@`n6omN#$T%=|W|WLGDaYWL_y`IHb+lY{j|~>sgt2Dy-<~18m@s8_41z@e5}- z28v*400wSsfDNz#Hoykh02^QfY=8~00XDz}*uW7nAUz>|oD|~4Fb;(O|IKdz-%kti z4SWF~!3XdfM8E@6-~#x0N{CNj2W*2)@C-Z#8nnO~cnGTCIv55gz-O%Y4!i|B;0<^M zUIMe13~*xuY=8~00XDz}*Z><~18jf|9Bu>MZdZtc7lld`@}c1Ce+H3JD3r;veI2MK zUX`{?MElgBlD{`h%eN?NsnAU4xsGMusVy`gOfS^t>*hV{irwp683e1+eX{4ZYg5*X z(D_k9`8??mADvMYtB~9vN)@G<%-X5hzUbwmph>grjX_2Qp$`IhssU)vOf+l`{cLG!76?59X) zX34U()tsHL&F$tuTApS+Yh%tHOVv}dXO^1vx%%z9