Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index b0df02d..47f9e76 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp | |||
@@ -106,9 +106,9 @@ void IOLayerBase::setParity( Parity par ) { | |||
106 | break; | 106 | break; |
107 | } | 107 | } |
108 | } | 108 | } |
109 | void IOLayerBase::setSpeed( Speed sp ) { | 109 | void IOLayerBase::setSpeed( Speed sp ) { |
110 | int index; | 110 | int index = -1; |
111 | switch( sp ) { | 111 | switch( sp ) { |
112 | case Baud_115200: | 112 | case Baud_115200: |
113 | index = id_baud_115200; | 113 | index = id_baud_115200; |
114 | break; | 114 | break; |
@@ -120,8 +120,9 @@ void IOLayerBase::setSpeed( Speed sp ) { | |||
120 | break; | 120 | break; |
121 | case Baud_19200: | 121 | case Baud_19200: |
122 | index = id_baud_19200; | 122 | index = id_baud_19200; |
123 | break; | 123 | break; |
124 | default: | ||
124 | case Baud_9600: | 125 | case Baud_9600: |
125 | index = id_baud_9600; | 126 | index = id_baud_9600; |
126 | break; | 127 | break; |
127 | } | 128 | } |
@@ -159,8 +160,9 @@ IOLayerBase::Speed IOLayerBase::speed()const{ | |||
159 | break; | 160 | break; |
160 | case id_baud_19200: | 161 | case id_baud_19200: |
161 | return Baud_19200; | 162 | return Baud_19200; |
162 | break; | 163 | break; |
164 | default: | ||
163 | case id_baud_9600: | 165 | case id_baud_9600: |
164 | return Baud_9600; | 166 | return Baud_9600; |
165 | break; | 167 | break; |
166 | } | 168 | } |