Skip to content

Commit 4dd9493

Browse files
committed
Modify the action of sendingInterval
1 parent 72883d9 commit 4dd9493

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

dist/webduino-all.js

+1
Original file line numberDiff line numberDiff line change
@@ -4912,6 +4912,7 @@ if (typeof exports !== 'undefined') {
49124912
if (Date.now() - this._sendingRec[idx].timestamp < this.sendingInterval) return;
49134913
this._sendingRec.splice(idx, 1);
49144914
}
4915+
this._sendingRec.splice(0);
49154916
this._sendingRec.push({
49164917
value: data.slice(),
49174918
timestamp: Date.now()

dist/webduino-all.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/webduino-base.js

+1
Original file line numberDiff line numberDiff line change
@@ -4912,6 +4912,7 @@ if (typeof exports !== 'undefined') {
49124912
if (Date.now() - this._sendingRec[idx].timestamp < this.sendingInterval) return;
49134913
this._sendingRec.splice(idx, 1);
49144914
}
4915+
this._sendingRec.splice(0);
49154916
this._sendingRec.push({
49164917
value: data.slice(),
49174918
timestamp: Date.now()

dist/webduino-base.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/files/src_core_Board.js.html

+1
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ <h1>src/core/Board.js <small>File</small></h1>
988988
if (Date.now() - this._sendingRec[idx].timestamp &lt; this.sendingInterval) return;
989989
this._sendingRec.splice(idx, 1);
990990
}
991+
this._sendingRec.splice(0);
991992
this._sendingRec.push({
992993
value: data.slice(),
993994
timestamp: Date.now()

src/core/Board.js

+1
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@
890890
if (Date.now() - this._sendingRec[idx].timestamp < this.sendingInterval) return;
891891
this._sendingRec.splice(idx, 1);
892892
}
893+
this._sendingRec.splice(0);
893894
this._sendingRec.push({
894895
value: data.slice(),
895896
timestamp: Date.now()

0 commit comments

Comments
 (0)