Diffstat (limited to 'noncore/apps/opie-console/irdaconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/irdaconfigwidget.cpp | 7 |
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 @@ -58,10 +58,12 @@ void IrdaConfigWidget::load( const Profile& prof ) { } if (rad_parity == 1) { m_base->setParity( IOLayerBase::Even ); - } else { + } else if ( rad_parity == 2 ) { m_base->setParity( IOLayerBase::Odd ); + } else { + m_base->setParity( IOLayerBase::NonePar ); } switch( speed ) { case 115200: @@ -114,8 +116,11 @@ void IrdaConfigWidget::save( Profile& prof ) { break; case IOLayerBase::Even: parity = 1; break; + case IOLayerBase::NonePar: + parity = 0; + break; } switch( m_base->speed() ) { case IOLayerBase::Baud_115200: |