mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
duplicate emptyline removal (#14027)
* trailing space removal Co-authored-by: Petr Ledvina <ledvinap@gmail.com> * deduplicate empty lines --------- Co-authored-by: Petr Ledvina <ledvinap@gmail.com> Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
This commit is contained in:
parent
493b9bf819
commit
ed6a4a4769
289 changed files with 0 additions and 629 deletions
|
@ -46,7 +46,6 @@
|
|||
|
||||
#include "pg/motor.h"
|
||||
|
||||
|
||||
typedef enum {
|
||||
BAUDRATE_NORMAL = 19200,
|
||||
BAUDRATE_SIMONK = 28800, // = 9600 * 3
|
||||
|
@ -238,7 +237,6 @@ static void processTxStateBL(escSerial_t *escSerial)
|
|||
escSerial->bitsLeftToTransmit = TX_TOTAL_BITS;
|
||||
escSerial->isTransmittingData = true;
|
||||
|
||||
|
||||
//set output
|
||||
if (escSerial->mode==PROTOCOL_BLHELI || escSerial->mode==PROTOCOL_CASTLE) {
|
||||
escSerialOutputPortConfig(escSerial->rxTimerHardware);
|
||||
|
@ -468,7 +466,6 @@ reload:
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// build internal buffer, data bits (MSB to LSB)
|
||||
escSerial->internalTxBuffer = byteToSend;
|
||||
escSerial->bitsLeftToTransmit = 8;
|
||||
|
@ -661,7 +658,6 @@ static serialPort_t *openEscSerial(const motorDevConfig_t *motorConfig, escSeria
|
|||
{
|
||||
escSerial_t *escSerial = &(escSerialPorts[portIndex]);
|
||||
|
||||
|
||||
if (mode != PROTOCOL_KISSALL) {
|
||||
|
||||
if (escSerialConfig()->ioTag == IO_TAG_NONE) {
|
||||
|
@ -780,7 +776,6 @@ static serialPort_t *openEscSerial(const motorDevConfig_t *motorConfig, escSeria
|
|||
return &escSerial->port;
|
||||
}
|
||||
|
||||
|
||||
static void escSerialInputPortDeConfig(const timerHardware_t *timerHardwarePtr)
|
||||
{
|
||||
timerChClearCCFlag(timerHardwarePtr);
|
||||
|
@ -788,7 +783,6 @@ static void escSerialInputPortDeConfig(const timerHardware_t *timerHardwarePtr)
|
|||
escSerialGPIOConfig(timerHardwarePtr, IOCFG_IPU);
|
||||
}
|
||||
|
||||
|
||||
static void closeEscSerial(escSerialPortIndex_e portIndex, uint8_t mode)
|
||||
{
|
||||
escSerial_t *escSerial = &(escSerialPorts[portIndex]);
|
||||
|
@ -951,7 +945,6 @@ static bool processExitCommand(uint8_t c)
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool escEnablePassthrough(serialPort_t *escPassthroughPort, const motorDevConfig_t *motorConfig, uint16_t escIndex, uint8_t mode)
|
||||
{
|
||||
bool exitEsc = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue