1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

serial.send won't depend on callback anymore

This commit is contained in:
cTn 2014-10-08 11:15:02 +02:00
parent 296a925494
commit c34938b9d6
2 changed files with 2 additions and 2 deletions

View file

@ -148,7 +148,7 @@ var serial = {
self.bytes_sent += sendInfo.bytesSent;
// fire callback
callback(sendInfo);
if (callback) callback(sendInfo);
// remove data for current transmission form the buffer
self.output_buffer.shift();