diff --git a/config/bdd.sql b/config/bdd.sql index 68e1e4a..4983b8c 100755 --- a/config/bdd.sql +++ b/config/bdd.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Jul 19, 2016 at 11:26 AM +-- Generation Time: Jul 19, 2016 at 03:00 PM -- Server version: 5.7.12-0ubuntu1.1 -- PHP Version: 7.0.4-7ubuntu2.1 @@ -391,9 +391,9 @@ INSERT INTO `state` (`id_state`, `id_pin_merge`, `state`, `value`) VALUES (11, 2, 'R', 0), (12, 3, 'R', 0), (13, 4, '0', 0), -(14, 4, '1', 1), +(14, 4, '1', 255), (15, 5, '0', 0), -(16, 5, '1', 1); +(16, 5, '1', 255); -- -------------------------------------------------------- diff --git a/test/client/interface.php b/test/client/interface.php index ffeb493..9708abf 100644 --- a/test/client/interface.php +++ b/test/client/interface.php @@ -296,10 +296,8 @@ var values = CHIPS[c].states[STATES[s].chips[c]]; /* (6) On applique les valeurs */ - for( var p in pins ){ + for( var p in pins ) board.set( parseInt(pins[p]), parseInt(values[p]) ); - console.log('board.set(', parseInt(pins[p]), ',', parseInt(values[p]), ');'); - } }