diff --git a/js/serial.js b/js/serial.js index e5521900..b8da9353 100644 --- a/js/serial.js +++ b/js/serial.js @@ -14,7 +14,7 @@ var serial = { self.bytes_received = 0; self.bytes_sent = 0; - self.onReceive.addListener(function(info) { + self.onReceive.addListener(function log_bytes_received(info) { self.bytes_received += info.data.byteLength; });