From 69b03a15eb048c05b31a5cc6128c27acc77c1dd5 Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Tue, 15 Sep 2009 19:03:26 +0900 Subject: Figure out how to encode RS --- lpg/libqr/code-create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lpg/libqr/code-create.c') diff --git a/lpg/libqr/code-create.c b/lpg/libqr/code-create.c index 484dbe3..389dcd5 100644 --- a/lpg/libqr/code-create.c +++ b/lpg/libqr/code-create.c @@ -31,13 +31,13 @@ static int add_ecc(struct bitstream * bits, int format, enum qr_ec_level ec) puts("Before ecc:"); x_dump(bits); { - const int g[10] = { 251, 67, 61, 118, 70, 64, 94, 32, 45 }; int rs_words = 10; /* 1-M */ struct bitstream * rs; - rs = rs_generate_words(rs_words, g, bits); + rs = rs_generate_words(rs_words, bits); puts("ecc part:"); x_dump(rs); + bitstream_destroy(rs); } return -1; } -- cgit v1.2.3-70-g09d2