From: Keith Packard Date: Fri, 10 Sep 2010 03:39:41 +0000 (-0700) Subject: altosui: Remove some debug printfs. X-Git-Tag: 0.7.1~10 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=72a5c1258db92d0ddd660bfa875e8e55cab47af7;hp=031fd9a954f2e3447d0150eb4ecc81af7b620dca;ds=sidebyside altosui: Remove some debug printfs. Signed-off-by: Keith Packard --- diff --git a/ao-tools/altosui/AltosDevice.java b/ao-tools/altosui/AltosDevice.java index d671031d..f646305b 100644 --- a/ao-tools/altosui/AltosDevice.java +++ b/ao-tools/altosui/AltosDevice.java @@ -113,11 +113,6 @@ public class AltosDevice extends altos_device { public boolean matchProduct(int want_product) { - System.out.printf("vendor %x product %x want %x\n", - getVendor(), getProduct(), want_product); - System.out.printf("vendor_altusmetrum: %d\n", vendor_altusmetrum); - System.out.printf("telemetrum: %d\n", product_telemetrum); - if (!isAltusMetrum()) return false; @@ -139,23 +134,19 @@ public class AltosDevice extends altos_device { } static AltosDevice[] list(int product) { - if (!load_library()) { - System.out.printf("no library\n"); + if (!load_library()) return null; - } SWIGTYPE_p_altos_list list = libaltos.altos_list_start(); ArrayList device_list = new ArrayList(); if (list != null) { - System.out.printf("got device list\n"); SWIGTYPE_p_altos_file file; for (;;) { AltosDevice device = new AltosDevice(); if (libaltos.altos_list_next(list, device) == 0) break; - System.out.printf("got device\n"); if (device.matchProduct(product)) device_list.add(device); }