altosui: Adjust max log setting for storage block size
[fw/altos] / altosui / AltosConfigFC.java
index 66afd8a0d3521f89d01ddd1e9aa4ea8fbc1aab1c..20ca311e30d1ce7b9e4e67d6f8f38c27606b0ea3 100644 (file)
@@ -232,7 +232,9 @@ public class AltosConfigFC implements ActionListener {
 
                try {
                        /* bounds check stuff */
-                       if (config_ui.flight_log_max() > data.log_space() / 1024) {
+                       if (config_ui.flight_log_max() != AltosLib.MISSING &&
+                           config_ui.flight_log_max() > data.log_space() / 1024)
+                       {
                                JOptionPane.showMessageDialog(owner,
                                                              String.format("Requested flight log, %dk, is larger than the available space, %dk.\n",
                                                                            config_ui.flight_log_max(),