X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Faltosui%2FAltosDevice.java;h=f488174cf7677e3dc345b1a6875b78d2f5e41d7a;hb=d14c96663a1027164fa30ed89b53f5a9d3fdb82b;hp=0e7d01da757cf1f7e2729c6a4be038c2133fb873;hpb=17188f36fe18c23bc2eb877ac9a01b7693f4b863;p=fw%2Faltos diff --git a/ao-tools/altosui/AltosDevice.java b/ao-tools/altosui/AltosDevice.java index 0e7d01da..f488174c 100644 --- a/ao-tools/altosui/AltosDevice.java +++ b/ao-tools/altosui/AltosDevice.java @@ -42,7 +42,8 @@ public class AltosDevice extends altos_device { AltosDevice device = new AltosDevice(); if (libaltos.altos_list_next(list, device) == 0) break; - device_list.add(device); + if (product == null || device.getProduct().startsWith(product)) + device_list.add(device); } libaltos.altos_list_finish(list); }