Skip to content

Commit 88a5569

Browse files
committed
Fix comms.on data callback not getting data!
1 parent 23a9208 commit 88a5569

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/comms.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Bluetooth.print("\\xFF");
537537
connection.received += d;
538538
connection.hadData = true;
539539
if (connection.cb) connection.cb(d);
540-
callback();
540+
callback(d);
541541
});
542542
}
543543
}

0 commit comments

Comments
 (0)