1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Uncrustify

This commit is contained in:
Alessio Morale 2014-11-27 12:05:59 +01:00
parent 6485ffbd9a
commit 99d73426b8
5 changed files with 12 additions and 13 deletions

View File

@ -213,8 +213,7 @@ static int PIOS_DSM_UnrollChannels(struct pios_dsm_dev *dsm_dev)
/* extract and save the channel value */
uint8_t channel_num = (word >> resolution) & 0x0f;
if (channel_num < PIOS_DSM_NUM_INPUTS) {
if (channel_log & (1 << channel_num))
{
if (channel_log & (1 << channel_num)) {
/* Found duplicate! */
/* Update resolution and restart processing the current frame. */
resolution = 10;

View File

@ -213,8 +213,7 @@ static int PIOS_DSM_UnrollChannels(struct pios_dsm_dev *dsm_dev)
/* extract and save the channel value */
uint8_t channel_num = (word >> resolution) & 0x0f;
if (channel_num < PIOS_DSM_NUM_INPUTS) {
if (channel_log & (1 << channel_num))
{
if (channel_log & (1 << channel_num)) {
/* Found duplicate! */
/* Update resolution and restart processing the current frame. */
resolution = 10;

View File

@ -210,6 +210,7 @@ void AirframeInitialTuningPage::loadValidFiles()
void AirframeInitialTuningPage::setupTemplateList()
{
QListWidgetItem *item;
foreach(QString templ, m_templates.keys()) {
QJsonObject *json = m_templates[templ];
@ -222,7 +223,7 @@ void AirframeInitialTuningPage::setupTemplateList()
item->setData(Qt::UserRole + 1, QVariant::fromValue((QJsonObject *)NULL));
ui->templateList->insertItem(0, item);
ui->templateList->setCurrentRow(0);
//TODO Add generics to top under item Current tuning
// TODO Add generics to top under item Current tuning
}
QString AirframeInitialTuningPage::getTemplateKey(QJsonObject *templ)