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 063e8b4 commit 14a01a0Copy full SHA for 14a01a0
src/js/serial.js
@@ -129,7 +129,7 @@ class Serial extends EventTarget {
129
async send(data, callback) {
130
let result;
131
try {
132
- result = (await this._protocol.send(data, callback)) ?? { bytesSent: 0 };
+ result = await this._protocol.send(data, callback);
133
} catch (error) {
134
result = { bytesSent: 0 };
135
console.error(`${this.logHead} Error sending data:`, error);
0 commit comments