fix pysimSendOta: populate Response parser from por.decoded (SW + response data), remove broken resp-sw1/sw2 refs; bump to v1.3.2
This commit is contained in:
+4
-5
@@ -16,7 +16,7 @@
|
||||
<div class="max-w-7xl mx-auto px-6 py-4">
|
||||
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<h1 class="text-2xl font-bold text-heading">OTAMan <span id="slogan" class="text-sm font-normal text-gray-500 dark:text-slate-400 ml-2" data-l10n="SIM OTA with a Human Face">SIM OTA with a Human Face</span> <span class="text-xs text-gray-400 dark:text-slate-500 ml-1">v1.3.0</span></h1>
|
||||
<h1 class="text-2xl font-bold text-heading">OTAMan <span id="slogan" class="text-sm font-normal text-gray-500 dark:text-slate-400 ml-2" data-l10n="SIM OTA with a Human Face">SIM OTA with a Human Face</span> <span class="text-xs text-gray-400 dark:text-slate-500 ml-1">v1.3.2</span></h1>
|
||||
<div class="flex items-center gap-4">
|
||||
<button id="install-btn" class="px-2 py-1 text-xs rounded border border-gray-300 dark:border-slate-600 hover:bg-gray-200 dark:hover:bg-slate-700" style="display:none">INSTALL PWA [for offline use]</button>
|
||||
<a href="https://github.com/anttro/otaman" target="_blank" class="text-xs text-gray-400 hover:text-gray-600 dark:text-slate-500 dark:hover:text-slate-300">github</a>
|
||||
@@ -2700,10 +2700,9 @@ async function pysimSendOta() {
|
||||
try {
|
||||
const data = await pysimFetch('/api/send-ota', { sp, ...spParams() });
|
||||
if (data.success) {
|
||||
if (data.response_data) {
|
||||
document.getElementById('resp-data').value = data.response_data;
|
||||
document.getElementById('resp-sw1').value = data.sw.slice(0, 2);
|
||||
document.getElementById('resp-sw2').value = data.sw.slice(2, 4);
|
||||
if (data.por && data.por.decoded) {
|
||||
document.getElementById('resp-sw').value = data.por.decoded.last_status_word || '';
|
||||
document.getElementById('resp-data').value = data.por.decoded.last_response_data || '';
|
||||
switchTab('response');
|
||||
}
|
||||
let msg = 'OTA sent. SW: ' + data.sw;
|
||||
|
||||
Reference in New Issue
Block a user