- Reset µC
+ Reset µC
+ Clear Log
Baud:
-
Fmt: 8N1
@@ -85,6 +73,12 @@
);
});
+ $("#clear-button").addEventListener("click", function(e) {
+ e.preventDefault();
+ var co = $("#console");
+ co.innerHTML = "";
+ });
+
ajaxJson('GET', "/console/baud",
function(data) { $("#baud-sel").value = data.rate; },
function(s, st) { showNotification(st); }
diff --git a/html/console.js b/html/console.js
index e85d6d7..58398ad 100644
--- a/html/console.js
+++ b/html/console.js
@@ -21,7 +21,7 @@ function updateText(resp) {
var delay = 3000;
if (resp != null && resp.len > 0) {
- console.log("updateText got", resp.len, "chars at", resp.start);
+// console.log("updateText got", resp.len, "chars at", resp.start);
var isScrolledToBottom = el.scrollHeight - el.clientHeight <= el.scrollTop + 1;
//console.log("isScrolledToBottom="+isScrolledToBottom, "scrollHeight="+el.scrollHeight,
// "clientHeight="+el.clientHeight, "scrollTop="+el.scrollTop,
diff --git a/html/favicon.ico b/html/favicon.ico
index bf372a1..fe24a7b 100755
Binary files a/html/favicon.ico and b/html/favicon.ico differ
diff --git a/html/home.html b/html/home.html
index ef99429..33cbe27 100644
--- a/html/home.html
+++ b/html/home.html
@@ -59,20 +59,21 @@