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:
parent
6fd0153b91
commit
3e69bc7cbd
2 changed files with 3 additions and 3 deletions
|
@ -254,13 +254,13 @@ TABS.cli.read = function (readInfo) {
|
|||
|
||||
switch (data[i]) {
|
||||
case lineFeedCode:
|
||||
if (GUI.operating_system != "MacOS") {
|
||||
if (GUI.operating_system === "Windows") {
|
||||
writeLineToOutput(this.cliBuffer);
|
||||
this.cliBuffer = "";
|
||||
}
|
||||
break;
|
||||
case carriageReturnCode:
|
||||
if (GUI.operating_system == "MacOS") {
|
||||
if (GUI.operating_system !== "Windows") {
|
||||
writeLineToOutput(this.cliBuffer);
|
||||
this.cliBuffer = "";
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ describe('TABS.cli', () => {
|
|||
|
||||
// Ambigous auto-complete from firmware is preceded with an \r carriage return
|
||||
// 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>' :
|
||||
'seserialpassthrough\tservo<br>';
|
||||
expect(cliOutput.html()).to.equal(expectedValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue