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:
commit
1df7d71f39
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
extern uint8_t cliMode;
|
||||
extern bool cliMode;
|
||||
|
||||
struct serialConfig_s;
|
||||
void cliInit(const struct serialConfig_s *serialConfig);
|
||||
|
|
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
#include "gtest/gtest.h"
|
||||
|
||||
//uint32_t testFeatureMask = 0;
|
||||
uint8_t cliMode = 0;
|
||||
bool cliMode = false;
|
||||
|
||||
TEST(IoSerialTest, TestFindPortConfig)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue