summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/btconfigwidget.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/btconfigwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/btconfigwidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/btconfigwidget.cpp b/noncore/apps/opie-console/btconfigwidget.cpp
index eac6a79..7673d0b 100644
--- a/noncore/apps/opie-console/btconfigwidget.cpp
+++ b/noncore/apps/opie-console/btconfigwidget.cpp
@@ -60,26 +60,28 @@ void BTConfigWidget::load( const Profile& prof ) {
60 } 60 }
61 61
62 if (rad_flow == 1) { 62 if (rad_flow == 1) {
63 m_base->setFlow( IOLayerBase::Hardware ); 63 m_base->setFlow( IOLayerBase::Hardware );
64 } else if (rad_flow == 2) { 64 } else if (rad_flow == 2) {
65 m_base->setFlow( IOLayerBase::Software ); 65 m_base->setFlow( IOLayerBase::Software );
66 } else if (rad_flow == 0) { 66 } else if (rad_flow == 0) {
67 m_base->setFlow( IOLayerBase::None ); 67 m_base->setFlow( IOLayerBase::None );
68 } 68 }
69 69
70 if (rad_parity == 1) { 70 if (rad_parity == 1) {
71 m_base->setParity( IOLayerBase::Even ); 71 m_base->setParity( IOLayerBase::Even );
72 } else { 72 } else if ( rad_parity == 2 ) {
73 m_base->setParity( IOLayerBase::Odd ); 73 m_base->setParity( IOLayerBase::Odd );
74 } else {
75 m_base->setParity( IOLayerBase::NonePar );
74 } 76 }
75 77
76 switch( speed ) { 78 switch( speed ) {
77 case 115200: 79 case 115200:
78 m_base->setSpeed(IOLayerBase::Baud_115200 ); 80 m_base->setSpeed(IOLayerBase::Baud_115200 );
79 break; 81 break;
80 case 57600: 82 case 57600:
81 m_base->setSpeed( IOLayerBase::Baud_57600 ); 83 m_base->setSpeed( IOLayerBase::Baud_57600 );
82 break; 84 break;
83 case 38400: 85 case 38400:
84 m_base->setSpeed(IOLayerBase::Baud_38400 ); 86 m_base->setSpeed(IOLayerBase::Baud_38400 );
85 break; 87 break;
@@ -116,24 +118,27 @@ void BTConfigWidget::save( Profile& prof ) {
116 case IOLayerBase::Hardware: 118 case IOLayerBase::Hardware:
117 flow = 1; 119 flow = 1;
118 break; 120 break;
119 } 121 }
120 122
121 switch( m_base->parity() ) { 123 switch( m_base->parity() ) {
122 case IOLayerBase::Odd: 124 case IOLayerBase::Odd:
123 parity = 2; 125 parity = 2;
124 break; 126 break;
125 case IOLayerBase::Even: 127 case IOLayerBase::Even:
126 parity = 1; 128 parity = 1;
127 break; 129 break;
130 case IOLayerBase::NonePar:
131 parity = 0;
132 break;
128 } 133 }
129 134
130 switch( m_base->speed() ) { 135 switch( m_base->speed() ) {
131 case IOLayerBase::Baud_115200: 136 case IOLayerBase::Baud_115200:
132 speed = 115200; 137 speed = 115200;
133 break; 138 break;
134 case IOLayerBase::Baud_57600: 139 case IOLayerBase::Baud_57600:
135 speed = 57600; 140 speed = 57600;
136 break; 141 break;
137 case IOLayerBase::Baud_38400: 142 case IOLayerBase::Baud_38400:
138 speed = 38400; 143 speed = 38400;
139 break; 144 break;