summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/irdaconfigwidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/irdaconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/irdaconfigwidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/irdaconfigwidget.cpp b/noncore/apps/opie-console/irdaconfigwidget.cpp
index 2341fd4..72e99a1 100644
--- a/noncore/apps/opie-console/irdaconfigwidget.cpp
+++ b/noncore/apps/opie-console/irdaconfigwidget.cpp
@@ -59,8 +59,10 @@ void IrdaConfigWidget::load( const Profile& prof ) {
59 59
60 if (rad_parity == 1) { 60 if (rad_parity == 1) {
61 m_base->setParity( IOLayerBase::Even ); 61 m_base->setParity( IOLayerBase::Even );
62 } else { 62 } else if ( rad_parity == 2 ) {
63 m_base->setParity( IOLayerBase::Odd ); 63 m_base->setParity( IOLayerBase::Odd );
64 } else {
65 m_base->setParity( IOLayerBase::NonePar );
64 } 66 }
65 67
66 switch( speed ) { 68 switch( speed ) {
@@ -115,6 +117,9 @@ void IrdaConfigWidget::save( Profile& prof ) {
115 case IOLayerBase::Even: 117 case IOLayerBase::Even:
116 parity = 1; 118 parity = 1;
117 break; 119 break;
120 case IOLayerBase::NonePar:
121 parity = 0;
122 break;
118 } 123 }
119 124
120 switch( m_base->speed() ) { 125 switch( m_base->speed() ) {