Corretto errore variabile

Non veniva riconosciuto il valore del sensore pioggia in quanto veniva utilizzata una variabile in scrittura (val) che non veniva poi letta.
This commit is contained in:
Paolo
2017-11-01 17:48:56 +01:00
committed by GitHub
parent daf8a7baa6
commit 83e23d6bad

View File

@@ -294,7 +294,7 @@ function drv_rain_sensor_get {
# Nessun driver definito, esegue la lettura del sensore tramite gpio del raspberry
if [ -z "$fnc" ]; then
val=`$GPIO -g read $idx`
vret=`$GPIO -g read $idx`
# Il driver definito non è stato trovato
elif [ "$fnc" == "drvnotfound" ]; then
log_write "Driver not found: $idx"