Merge pull request #9 from polcape/patch-1

Corretto errore variabile in drv_rain_sensor_get
This commit is contained in:
David Bigagli
2017-11-01 18:01:37 +01:00
committed by GitHub

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"