fix i2c, add deep sleep

This commit is contained in:
Thaddeus Hughes
2026-04-28 12:43:43 -05:00
parent ef1f3e4e85
commit 666750f710
25 changed files with 2163 additions and 1196 deletions

View File

@@ -307,6 +307,12 @@
<button onclick="programRFSequence()">Program All Buttons</button>
</td>
</tr>
<tr>
<td>Deep Sleep</td>
<td>
<button onclick="sendCommand('hibernate')">Enter Deep Sleep</button>
</td>
</tr>
</table>
<button id="cancel_btn" onclick="location.reload();" disabled>Discard</button>
@@ -751,6 +757,10 @@
if (!await modalConfirm("Device will sleep. Are you sure?"))
return;
}
if (cmdName === 'hibernate') {
if (!await modalConfirm("Device will enter deep sleep — clock will be cleared, only the physical button can wake it. Are you sure?"))
return;
}
try {
const response = await fetch('./post', {