Try new power toggle name
This commit is contained in:
parent
4485d14c5d
commit
9b4ea6f576
@ -49,7 +49,7 @@ function refreshState(doc, state) {
|
||||
console.log('State refreshed.');
|
||||
}
|
||||
|
||||
function power(element) {
|
||||
function togglePower(element) {
|
||||
psState[element].power(comms);
|
||||
refreshState(window.document, psState);
|
||||
}
|
@ -42,13 +42,13 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="button-container flex">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="igniter-toggle-btn" value="Toggle Igniter" name="igniterToggle" onclick="power('igniter')">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="igniter-toggle-btn" value="Toggle Igniter" name="igniterToggle" onclick="togglePower('igniter')">
|
||||
</div>
|
||||
<div class="button-container flex mt-4">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="exhaust-toggle-btn" value="Toggle Exhaust" name="exhaustToggle" onclick="power('exhaust')">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="exhaust-toggle-btn" value="Toggle Exhaust" name="exhaustToggle" onclick="togglePower('exhaust')">
|
||||
</div>
|
||||
<div class="button-container flex mt-4">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="auger-toggle-btn" value="Toggle Auger" name="augerToggle" onclick="power('auger')">
|
||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="auger-toggle-btn" value="Toggle Auger" name="augerToggle" onclick="togglePower('auger')">
|
||||
</div>
|
||||
<form action="/" method="post">
|
||||
<!-- Set feed rates -->
|
||||
|
Loading…
Reference in New Issue
Block a user