We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b886b2f commit dc8339dCopy full SHA for dc8339d
src/board/Bit.js
@@ -54,14 +54,15 @@
54
55
Bit.DEFAULT_SERVER = 'wss://ws.webduino.io:443';
56
57
- proto.startup = async function () {
+ proto.startup = function () {
58
this._isReady = true;
59
- if (this._options.transport === 'serial') {
60
- // wait for physical board ready to receive data from serialPort
61
- await delay(0.5);
62
- this.send([0xf0, 0x0e, 0x0c, 0xf7]);
63
- }
64
this.emit(BoardEvent.READY, this);
+ setTimeout(function() {
+ if (this._options.transport === 'serial') {
+ // wait for physical board ready to receive data from serialPort
+ this.send([0xf0, 0x0e, 0x0c, 0xf7]);
+ }
65
+ }.bind(this), 500);
66
};
67
68
0 commit comments