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
@@ -50,26 +50,28 @@ void IrdaConfigWidget::load( const Profile& prof ) {
50 int speed = prof.readNumEntry("Speed"); 50 int speed = prof.readNumEntry("Speed");
51 51
52 if (rad_flow == 1) { 52 if (rad_flow == 1) {
53 m_base->setFlow( IOLayerBase::Hardware ); 53 m_base->setFlow( IOLayerBase::Hardware );
54 } else if (rad_flow == 2) { 54 } else if (rad_flow == 2) {
55 m_base->setFlow( IOLayerBase::Software ); 55 m_base->setFlow( IOLayerBase::Software );
56 } else { 56 } else {
57 m_base->setFlow( IOLayerBase::None ); 57 m_base->setFlow( IOLayerBase::None );
58 } 58 }
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 ) {
67 case 115200: 69 case 115200:
68 m_base->setSpeed(IOLayerBase::Baud_115200 ); 70 m_base->setSpeed(IOLayerBase::Baud_115200 );
69 break; 71 break;
70 case 57600: 72 case 57600:
71 m_base->setSpeed( IOLayerBase::Baud_57600 ); 73 m_base->setSpeed( IOLayerBase::Baud_57600 );
72 break; 74 break;
73 case 38400: 75 case 38400:
74 m_base->setSpeed(IOLayerBase::Baud_38400 ); 76 m_base->setSpeed(IOLayerBase::Baud_38400 );
75 break; 77 break;
@@ -106,24 +108,27 @@ void IrdaConfigWidget::save( Profile& prof ) {
106 flow = 1; 108 flow = 1;
107 break; 109 break;
108 } 110 }
109 111
110 112
111 switch( m_base->parity() ) { 113 switch( m_base->parity() ) {
112 case IOLayerBase::Odd: 114 case IOLayerBase::Odd:
113 parity = 2; 115 parity = 2;
114 break; 116 break;
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() ) {
121 case IOLayerBase::Baud_115200: 126 case IOLayerBase::Baud_115200:
122 speed = 115200; 127 speed = 115200;
123 break; 128 break;
124 case IOLayerBase::Baud_57600: 129 case IOLayerBase::Baud_57600:
125 speed = 57600; 130 speed = 57600;
126 break; 131 break;
127 case IOLayerBase::Baud_38400: 132 case IOLayerBase::Baud_38400:
128 speed = 38400; 133 speed = 38400;
129 break; 134 break;