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

View File

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

View File

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