projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: ADS1256 seems to be running fast enough with 8 MHz crystal and 2 MHz SPI
[fw/altos]
/
altosuilib
/
AltosUIRateList.java
diff --git
a/altosuilib/AltosUIRateList.java
b/altosuilib/AltosUIRateList.java
index 0c783a89d46a6ad3b4089101296b0f2cc68a36db..1717fb69b98934a5e4ed4588747926f497e9689f 100644
(file)
--- a/
altosuilib/AltosUIRateList.java
+++ b/
altosuilib/AltosUIRateList.java
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-15,10
+16,10
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altosuilib_
6
;
+package org.altusmetrum.altosuilib_
13
;
import javax.swing.*;
import javax.swing.*;
-import org.altusmetrum.altoslib_
6
.*;
+import org.altusmetrum.altoslib_
13
.*;
public class AltosUIRateList extends JComboBox<String> {
public class AltosUIRateList extends JComboBox<String> {
@@
-26,10
+27,9
@@
public class AltosUIRateList extends JComboBox<String> {
int serial;
public void set_rate(int new_rate) {
int serial;
public void set_rate(int new_rate) {
- int i;
-
- setVisible(new_rate >= 0);
- setSelectedIndex(new_rate);
+ if (new_rate != AltosLib.MISSING)
+ setSelectedIndex(new_rate);
+ setVisible(new_rate != AltosLib.MISSING);
}
public void set_product(String new_product) {
}
public void set_product(String new_product) {