diff --git a/borne/index.php b/borne/index.php index d2adfb2..db4d50d 100644 --- a/borne/index.php +++ b/borne/index.php @@ -8,7 +8,9 @@ session_destroy(); header("location:interface/init.php"); }else{ - $pin = False; + + // Set the value of the pin high (turn it on) + $pin->setValue(PinInterface::VALUE_HIGH); $tube = new Tube(); @@ -31,6 +33,9 @@ $_SESSION['song_title'] = $song_title; include_once('create_tube.php'); + + // Set the value of the pin high (turn it on) + $pin->setValue(PinInterface::VALUE_LOW); } ?>