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

spektrum: code style fixes accoring to OPReview-122

This commit is contained in:
Oleg Semyonov 2011-11-01 18:48:07 +02:00
parent 0aad612720
commit 481bff2578
3 changed files with 9 additions and 3 deletions

View File

@ -1204,6 +1204,9 @@ void PIOS_Board_Init(void) {
{
enum pios_dsm_proto proto;
switch (hwsettings_cc_mainport) {
case HWSETTINGS_CC_MAINPORT_DSM2:
proto = PIOS_DSM_PROTO_DSM2;
break;
case HWSETTINGS_CC_MAINPORT_DSMX10BIT:
proto = PIOS_DSM_PROTO_DSMX10BIT;
break;
@ -1211,7 +1214,7 @@ void PIOS_Board_Init(void) {
proto = PIOS_DSM_PROTO_DSMX11BIT;
break;
default:
proto = PIOS_DSM_PROTO_DSM2;
PIOS_Assert(0);
break;
}
@ -1291,6 +1294,9 @@ void PIOS_Board_Init(void) {
{
enum pios_dsm_proto proto;
switch (hwsettings_cc_flexiport) {
case HWSETTINGS_CC_FLEXIPORT_DSM2:
proto = PIOS_DSM_PROTO_DSM2;
break;
case HWSETTINGS_CC_FLEXIPORT_DSMX10BIT:
proto = PIOS_DSM_PROTO_DSMX10BIT;
break;
@ -1298,7 +1304,7 @@ void PIOS_Board_Init(void) {
proto = PIOS_DSM_PROTO_DSMX11BIT;
break;
default:
proto = PIOS_DSM_PROTO_DSM2;
PIOS_Assert(0);
break;
}

View File

@ -25,6 +25,7 @@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "config_cc_hw_widget.h"
#include "hwsettings.h"
#include <QDebug>
#include <QStringList>

View File

@ -35,7 +35,6 @@
#include <QtGui/QWidget>
#include <QList>
#include "smartsavebutton.h"
#include "hwsettings.h"
class ConfigCCHWWidget: public ConfigTaskWidget
{