# HG changeset patch # User Mychaela Falconia # Date 1511028162 0 # Node ID 7fefa4f73c6a6e7bf283cb7158a39f83b94481f7 # Parent 734b38f634dbe8bfedeb8ab7013e01b59a59ee01 c1xx-calextr: off-by-1 error in the Tx levels table conversion diff -r 734b38f634db -r 7fefa4f73c6a ffstools/caltools/c1xx-calextr.c --- 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++) {