1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 04:45:18 +03:00

another run on undefined comparators

This commit is contained in:
cTn 2014-08-14 16:41:49 +02:00 committed by Dominic Clifton
parent 644fb5afed
commit d4f4d619cf
5 changed files with 16 additions and 16 deletions

View file

@ -13,7 +13,7 @@ var serial = {
var self = this;
chrome.serial.connect(path, options, function(connectionInfo) {
if (connectionInfo !== undefined) {
if (connectionInfo) {
self.connectionId = connectionInfo.connectionId;
self.bitrate = connectionInfo.bitrate;
self.bytes_received = 0;