reduced buffers, not really needed

This commit is contained in:
2017-09-07 02:27:05 +02:00
parent 48cd9c1a2a
commit e46abe175f
4 changed files with 15 additions and 15 deletions
+6 -6
View File
@@ -43,9 +43,9 @@ var TermUpl = (function() {
send_delay_ms = qs('#fu_delay').value;
// sanitize - 0 causes overflows
if (send_delay_ms <= 0) {
send_delay_ms = 1;
qs('#fu_delay').value = 1;
if (send_delay_ms < 0) {
send_delay_ms = 0;
qs('#fu_delay').value = send_delay_ms;
}
nl_str = {
@@ -84,7 +84,6 @@ var TermUpl = (function() {
inline_pos += MAX_LINE_LEN;
}
console.log("-> " + chunk);
if (!Input.sendString(chunk)) {
fuStatus("FAILED!");
return;
@@ -103,14 +102,15 @@ var TermUpl = (function() {
function closeWhenReady() {
if (!Conn.canSend()) {
// stuck in XOFF still, wait to process...
fuStatus("Waiting for Tx buffer...");
setTimeout(closeWhenReady, 250);
setTimeout(closeWhenReady, 100);
} else {
fuStatus("Done.");
// delay to show it
setTimeout(function() {
fuClose();
}, 250);
}, 100);
}
}