diff options
author | Keith Packard <keithp@keithp.com> | 2018-08-22 00:52:21 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2018-10-02 13:00:32 -0700 |
commit | 3c48b0fd504ae97dfaca91d2064b5822ca6e1344 (patch) | |
tree | 502c557cf92f0bad3c979c9cec62e409a365dce3 /altoslib/AltosHexfile.java | |
parent | ac8a9bc2ef301f1f18772af7d871c257a56ae70c (diff) |
altoslib: Reduce debug printf spamming during flashing operation
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosHexfile.java')
-rw-r--r-- | altoslib/AltosHexfile.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/altoslib/AltosHexfile.java b/altoslib/AltosHexfile.java index 67cc3eee..609d1bcb 100644 --- a/altoslib/AltosHexfile.java +++ b/altoslib/AltosHexfile.java @@ -354,11 +354,6 @@ public class AltosHexfile { int product_len = get_u8(a); - System.out.printf("Product is at %x length %d\n", a, product_len); - - for (int i = 0; i < product_len; i++) - System.out.printf(" %2d: %02x\n", i, get_u8(a+i)); - if (product_len <= 0) return null; @@ -367,12 +362,11 @@ public class AltosHexfile { for (int i = 0; i < product_len - 2; i += 2) { int c = get_u16(a + 2 + i); - System.out.printf("character %x\n", c); - product += Character.toString((char) c); } - System.out.printf("product %s\n", product); + if (AltosLink.debug) + System.out.printf("product %s\n", product); return product; } |