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:
@@ -294,7 +294,7 @@ function drv_rain_sensor_get {
|
|||||||
|
|
||||||
# Nessun driver definito, esegue la lettura del sensore tramite gpio del raspberry
|
# Nessun driver definito, esegue la lettura del sensore tramite gpio del raspberry
|
||||||
if [ -z "$fnc" ]; then
|
if [ -z "$fnc" ]; then
|
||||||
val=`$GPIO -g read $idx`
|
vret=`$GPIO -g read $idx`
|
||||||
# Il driver definito non è stato trovato
|
# Il driver definito non è stato trovato
|
||||||
elif [ "$fnc" == "drvnotfound" ]; then
|
elif [ "$fnc" == "drvnotfound" ]; then
|
||||||
log_write "Driver not found: $idx"
|
log_write "Driver not found: $idx"
|
||||||
|
|||||||
Reference in New Issue
Block a user