Skip to content

Commit

Permalink
add reset to default i2c mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 29, 2015
1 parent 6582190 commit bb2a764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/settings/i2c.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$default = isset($_POST['default']) ? $_POST['default'] : '';
if ($default == "default") {
$db = new PDO("sqlite:dbf/nettemp.db");
$db->exec("DELETE table i2c") or header("Location: html/errors/db_error.php");
$db->exec("DELETE from i2c") or header("Location: html/errors/db_error.php");
$db->exec("INSERT OR IGNORE INTO i2c (name, addr) VALUES ('bmp180','77')") or header("Location: html/errors/db_error.php");
$db->exec("INSERT OR IGNORE INTO i2c (name, addr) VALUES ('tsl2561','39')") or header("Location: html/errors/db_error.php");
$db->exec("INSERT OR IGNORE INTO i2c (name, addr) VALUES ('ds2482','18')") or header("Location: html/errors/db_error.php");
Expand Down

0 comments on commit bb2a764

Please sign in to comment.