Diffstat (limited to 'noncore/apps/opie-console/modemconfigwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/modemconfigwidget.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp index ac62e45..0f0ce7c 100644 --- a/noncore/apps/opie-console/modemconfigwidget.cpp +++ b/noncore/apps/opie-console/modemconfigwidget.cpp @@ -84,8 +84,11 @@ void ModemConfigWidget::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 ); } @@ -146,4 +149,7 @@ void ModemConfigWidget::save( Profile& prof ) { parity = 1; break; + case IOLayerBase::NonePar: + parity = 0; + break; } |