From 48b7efb83b30f549af923003af9e5515fbc3f30b Mon Sep 17 00:00:00 2001 From: arnaud <arnaud.watlet@umons.ac.be> Date: Wed, 26 Oct 2022 14:06:20 +0200 Subject: [PATCH] Fixes update_settings command in html interface --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 691332e9..ee10373b 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@ <div class='container'> <h1>OhmPi Acquisition Board</h1> <!-- 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='stopBtn' type="button" class="btn btn-warning">Stop</button> <!-- upload button for csv which display the table ABMN --> @@ -197,10 +197,10 @@ // define callback to send settigs to Pi function configCallback() { sendCommand(JSON.stringify({ - 'cmd': 'setConfig', + 'cmd': 'update_settings', 'config': formVals }), function(x) { - console.log('setconfig:', x) + console.log('update_settings', x) }) } -- GitLab