diff --git a/html/saraR4.html b/html/saraR4.html index c6c39b2..034720d 100755 --- a/html/saraR4.html +++ b/html/saraR4.html @@ -84,14 +84,19 @@ -
+
- +

SIM card information.

- + -
+
+
+
+ +
+
@@ -515,8 +520,8 @@ function getModemInfo(port, timeout) { alertHtml = ` `; + } else if (response.includes('ERROR') || response.trim() === '' || !response.includes('OK')) { + alertHtml = ` + `; + } else { + alertHtml = ` + `; + } + + $("#sim_info_alert").html(alertHtml); + }, + error: function(xhr, status, error) { + console.error('AJAX request failed:', status, error); + $("#loading_ttyAMA2_AT_CCID_").hide(); + $("#sim_info_alert").html(` + `); }