mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-26 15:54:15 +01:00
LP-72 uncrustify
This commit is contained in:
parent
fdc8b10ddf
commit
0628949afd
@ -140,7 +140,7 @@ int32_t PIOS_TIM_InitClock(const struct pios_tim_clock_cfg *cfg)
|
||||
NVIC_InitTypeDef init = cfg->irq.init;
|
||||
init.NVIC_IRQChannel = TIM1_UP_TIM10_IRQn;
|
||||
NVIC_Init(&init);
|
||||
#if !defined (STM32F401xx) && !defined (STM32F411xE)
|
||||
#if !defined(STM32F401xx) && !defined(STM32F411xE)
|
||||
} else if (cfg->timer == TIM8) {
|
||||
NVIC_InitTypeDef init = cfg->irq.init;
|
||||
init.NVIC_IRQChannel = TIM8_UP_TIM13_IRQn;
|
||||
|
@ -15,7 +15,7 @@ int main(int argc, char *argv[])
|
||||
bool use_serial = false;
|
||||
bool verify;
|
||||
bool debug = false;
|
||||
//bool umodereset = false;
|
||||
// bool umodereset = false;
|
||||
OP_DFU::Actions action = OP_DFU::actionNone;
|
||||
QString file;
|
||||
QString serialport;
|
||||
@ -27,7 +27,7 @@ int main(int argc, char *argv[])
|
||||
debug = true;
|
||||
}
|
||||
if (args.contains("-ur")) {
|
||||
//umodereset = true;
|
||||
// umodereset = true;
|
||||
}
|
||||
standardOutput << "OpenPilot serial firmware uploader tool." << endl;
|
||||
if (args.indexOf(PROGRAMFW) + 1 < args.length()) {
|
||||
@ -57,17 +57,17 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
action = OP_DFU::actionProgram;
|
||||
} else if (args.contains(COMPARECRC) || args.contains(COMPAREALL)) {
|
||||
//int index;
|
||||
// int index;
|
||||
if (args.contains(COMPARECRC)) {
|
||||
//index = args.indexOf(COMPARECRC);
|
||||
// index = args.indexOf(COMPARECRC);
|
||||
action = OP_DFU::actionCompareCrc;
|
||||
} else {
|
||||
//index = args.indexOf(COMPAREALL);
|
||||
// index = args.indexOf(COMPAREALL);
|
||||
action = OP_DFU::actionCompareAll;
|
||||
}
|
||||
} else if (args.contains(DOWNLOAD)) {
|
||||
//int index;
|
||||
//index = args.indexOf(DOWNLOAD);
|
||||
// int index;
|
||||
// index = args.indexOf(DOWNLOAD);
|
||||
action = OP_DFU::actionDownload;
|
||||
} else if (args.contains(STATUSREQUEST)) {
|
||||
action = OP_DFU::actionStatusReq;
|
||||
|
@ -31,10 +31,10 @@
|
||||
#include <QDebug>
|
||||
|
||||
#ifdef OPHID_DEBUG_ON
|
||||
#define OPHID_DEBUG(fmt, args ...) qDebug("[DEBUG] " ## fmt, args)
|
||||
#define OPHID_TRACE(fmt, args ...) qDebug("[TRACE] %s:%s:%d: " ## fmt, __FILE__, __func__, __LINE__, args)
|
||||
#define OPHID_ERROR(fmt, args ...) qDebug("[ERROR] %s:%s:%d: " ## fmt, __FILE__, __func__, __LINE__, args)
|
||||
#define OPHID_WARNING(fmt, args ...) qDebug("[WARNING] " ## fmt, args)
|
||||
#define OPHID_DEBUG(fmt, args ...) qDebug("[DEBUG] "##fmt, args)
|
||||
#define OPHID_TRACE(fmt, args ...) qDebug("[TRACE] %s:%s:%d: "##fmt, __FILE__, __func__, __LINE__, args)
|
||||
#define OPHID_ERROR(fmt, args ...) qDebug("[ERROR] %s:%s:%d: "##fmt, __FILE__, __func__, __LINE__, args)
|
||||
#define OPHID_WARNING(fmt, args ...) qDebug("[WARNING] "##fmt, args)
|
||||
#else
|
||||
#define OPHID_DEBUG(fmt, args ...)
|
||||
#define OPHID_TRACE(fmt, args ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user