diff --git a/src/asset.js b/src/asset.js index 41aaccd..b00fb7b 100644 --- a/src/asset.js +++ b/src/asset.js @@ -251,7 +251,6 @@ class Asset { } _moveToChannel(callback) { - console.log('_moveToChannel') Request.post( this.apiEndpoint + '/audio/enter-group/' + this.id + '/' + this.groupId, { @@ -499,7 +498,6 @@ class Asset { _sendGPS(callback) { let hub = this.hub; if (hub && hub.connected) { - let lat = this.configs.settings.gps_lat_start_point; let lng = this.configs.settings.gps_lng_start_point; @@ -522,7 +520,9 @@ class Asset { )); lat = new_lat; lng = new_lng; - + if (!this.configs.settings.send_voice) { + this._start(); + } }, this.configs.settings.gps_report_interval); } }