1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Merge pull request #7439 from JulioCesarMatias/Cli_ModeUint8_t_To_Bool

[fc/cli.c/cli.h] Uint8_t to Bool
This commit is contained in:
Paweł Spychalski 2021-09-15 07:43:39 +02:00 committed by GitHub
commit 1df7d71f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@
#include "platform.h"
uint8_t cliMode = 0;
bool cliMode = false;
#include "blackbox/blackbox.h"
@ -2827,7 +2827,7 @@ static void cliExit(char *cmdline)
*cliBuffer = '\0';
bufferIndex = 0;
cliMode = 0;
cliMode = false;
// incase a motor was left running during motortest, clear it here
mixerResetDisarmedMotors();
cliReboot();
@ -4016,7 +4016,7 @@ void cliEnter(serialPort_t *serialPort)
return;
}
cliMode = 1;
cliMode = true;
cliPort = serialPort;
setPrintfSerialPort(cliPort);
cliWriter = bufWriterInit(cliWriteBuffer, sizeof(cliWriteBuffer), (bufWrite_t)serialWriteBufShim, serialPort);

View file

@ -17,7 +17,7 @@
#pragma once
extern uint8_t cliMode;
extern bool cliMode;
struct serialConfig_s;
void cliInit(const struct serialConfig_s *serialConfig);

View file

@ -34,7 +34,7 @@ extern "C" {
#include "gtest/gtest.h"
//uint32_t testFeatureMask = 0;
uint8_t cliMode = 0;
bool cliMode = false;
TEST(IoSerialTest, TestFindPortConfig)
{