Skip to content

Commit

Permalink
TX backpack webui not completing load due to aat
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Jan 14, 2024
1 parent a9185a0 commit 05ee1bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion html/scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ function init() {
}

function initAat() {
_('aatsubmit').addEventListener('click', callback('Update AAT Parameters', 'An error occurred changing values', '/aatconfig',
let aatsubmit = _('aatsubmit');
if (!aatsubmit)
return;

aatsubmit.addEventListener('click', callback('Update AAT Parameters', 'An error occurred changing values', '/aatconfig',
() => { return new URLSearchParams(new FormData(_('aatconfig'))); }
));
_('azim_center').addEventListener('change', aatAzimCenterChanged);
Expand Down
2 changes: 1 addition & 1 deletion html/txbp_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<header class="mui-appbar mui--z1 mui--text-center elrs-header">
<img src="logo.svg" height="250" width="250" style="padding:20px;">
<h1><b>ExpressLRS</b></h1>
<span id="product_name">TX</span> Backpack<br/>
<span id="product_name">TX Backpack</span><br/>
<b>Firmware Rev. </b>@VERSION@ <span id="reg_domain"></span>
</header>

Expand Down

0 comments on commit 05ee1bd

Please sign in to comment.