LAPI-633: Allow to simulate only GPS

This commit is contained in:
Sergiu Toma 2022-03-17 08:50:10 +00:00
parent 9eae897232
commit 0a9975425c

View File

@ -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);
}
}