Commit 48b7efb8 authored by Arnaud WATLET's avatar Arnaud WATLET
Browse files

Fixes update_settings command in html interface

Showing with 3 additions and 3 deletions
+3 -3
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div class='container'> <div class='container'>
<h1>OhmPi Acquisition Board</h1> <h1>OhmPi Acquisition Board</h1>
<!-- nb stacks, on-time --> <!-- nb stacks, on-time -->
<button id="setConfigBtn" type="button" class="btn btn-secondary" data-toggle="modal" data-target="#exampleModal">Settings</button> <button id="update_settingsBtn" type="button" class="btn btn-secondary" data-toggle="modal" data-target="#exampleModal">Settings</button>
<button id='startBtn' type="button" class="btn btn-primary">Start</button> <button id='startBtn' type="button" class="btn btn-primary">Start</button>
<button id='stopBtn' type="button" class="btn btn-warning">Stop</button> <button id='stopBtn' type="button" class="btn btn-warning">Stop</button>
<!-- upload button for csv which display the table ABMN --> <!-- upload button for csv which display the table ABMN -->
...@@ -197,10 +197,10 @@ ...@@ -197,10 +197,10 @@
// define callback to send settigs to Pi // define callback to send settigs to Pi
function configCallback() { function configCallback() {
sendCommand(JSON.stringify({ sendCommand(JSON.stringify({
'cmd': 'setConfig', 'cmd': 'update_settings',
'config': formVals 'config': formVals
}), function(x) { }), function(x) {
console.log('setconfig:', x) console.log('update_settings', x)
}) })
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment