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