1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

change check from === 'MacOS' to !== 'Windows'

This commit is contained in:
Adem Gaygusuz 2018-06-03 10:37:55 +01:00
parent 6fd0153b91
commit 3e69bc7cbd
2 changed files with 3 additions and 3 deletions

View file

@ -254,13 +254,13 @@ TABS.cli.read = function (readInfo) {
switch (data[i]) { switch (data[i]) {
case lineFeedCode: case lineFeedCode:
if (GUI.operating_system != "MacOS") { if (GUI.operating_system === "Windows") {
writeLineToOutput(this.cliBuffer); writeLineToOutput(this.cliBuffer);
this.cliBuffer = ""; this.cliBuffer = "";
} }
break; break;
case carriageReturnCode: case carriageReturnCode:
if (GUI.operating_system == "MacOS") { if (GUI.operating_system !== "Windows") {
writeLineToOutput(this.cliBuffer); writeLineToOutput(this.cliBuffer);
this.cliBuffer = ""; this.cliBuffer = "";
} }

View file

@ -43,7 +43,7 @@ describe('TABS.cli', () => {
// Ambigous auto-complete from firmware is preceded with an \r carriage return // Ambigous auto-complete from firmware is preceded with an \r carriage return
// which only renders a line break on Mac // which only renders a line break on Mac
const expectedValue = GUI.operating_system === "MacOS" ? const expectedValue = GUI.operating_system !== "Windows" ?
'se<br>serialpassthrough\tservo<br>' : 'se<br>serialpassthrough\tservo<br>' :
'seserialpassthrough\tservo<br>'; 'seserialpassthrough\tservo<br>';
expect(cliOutput.html()).to.equal(expectedValue); expect(cliOutput.html()).to.equal(expectedValue);