changeset 299:7fefa4f73c6a

c1xx-calextr: off-by-1 error in the Tx levels table conversion
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 18 Nov 2017 18:02:42 +0000
parents 734b38f634db
children 0cfb2e3aeda4
files ffstools/caltools/c1xx-calextr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ffstools/caltools/c1xx-calextr.c	Sat Nov 18 17:58:35 2017 +0000
+++ b/ffstools/caltools/c1xx-calextr.c	Sat Nov 18 18:02:42 2017 +0000
@@ -166,7 +166,7 @@
 	unsigned num_levels, n;
 
 	bzero(tx_levels_table, sizeof tx_levels_table);
-	num_levels = band->end_plnum - band->start_plnum;
+	num_levels = band->end_plnum - band->start_plnum + 1;
 	sp = compal_data;
 	dp = tx_levels_table + band->start_plnum * 4;
 	for (n = 0; n < num_levels; n++) {