mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
Change all console.log() calls to use string interpolation
This commit is contained in:
parent
35cb6a5e70
commit
b9b84e1c87
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ var MSP = {
|
||||||
this._dispatch_message(data[i]);
|
this._dispatch_message(data[i]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log('Unknown state detected: ' + this.state);
|
console.log(`Unknown state detected: ${this.state}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.last_received_timestamp = Date.now();
|
this.last_received_timestamp = Date.now();
|
||||||
|
@ -208,7 +208,7 @@ var MSP = {
|
||||||
// message received, store dataview
|
// message received, store dataview
|
||||||
this.dataView = new DataView(this.message_buffer, 0, this.message_length_expected);
|
this.dataView = new DataView(this.message_buffer, 0, this.message_length_expected);
|
||||||
} else {
|
} else {
|
||||||
console.log('code: ' + this.code + ' - crc failed');
|
console.log(`code: ${this.code} - crc failed`);
|
||||||
this.packet_error++;
|
this.packet_error++;
|
||||||
this.crcError = true;
|
this.crcError = true;
|
||||||
this.dataView = new DataView(new ArrayBuffer(0));
|
this.dataView = new DataView(new ArrayBuffer(0));
|
||||||
|
@ -334,7 +334,7 @@ var MSP = {
|
||||||
|
|
||||||
if (!requestExists) {
|
if (!requestExists) {
|
||||||
obj.timer = setInterval(function () {
|
obj.timer = setInterval(function () {
|
||||||
console.log('MSP data request timed-out: ' + code);
|
console.log(`MSP data request timed-out: ${code}`);
|
||||||
|
|
||||||
serial.send(bufferOut, false);
|
serial.send(bufferOut, false);
|
||||||
}, 1000); // we should be able to define timeout in the future
|
}, 1000); // we should be able to define timeout in the future
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue