altosui: Skip unknown data when parsing ADC for idle monitoring
authorKeith Packard <keithp@keithp.com>
Mon, 16 Jul 2012 22:36:20 +0000 (15:36 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 16 Jul 2012 22:36:20 +0000 (15:36 -0700)
This resolves an infinite loop when talking to megametrum.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosIdleMonitorUI.java

index eb6ec5e7da1eb70133b9f8afbc5c1b162bc64ad0..ce608d2b3bc6480e0717e318047e3df0a98868d4 100644 (file)
@@ -84,6 +84,7 @@ class AltosADC {
                                        i += 2;
                                        continue;
                                }
                                        i += 2;
                                        continue;
                                }
+                               i++;
                        }
                        break;
                }
                        }
                        break;
                }