mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
CC256x: use sizeof in generated init script file
This commit is contained in:
parent
01f72e3df4
commit
58026f5a53
@ -281,8 +281,7 @@ def convert_bts(output_file, main_bts_file, bts_add_on, aka, lmp_subversion):
|
|||||||
|
|
||||||
fout.write('};\n\n')
|
fout.write('};\n\n')
|
||||||
|
|
||||||
fout.write('const uint32_t {0}_init_script_size = {1};\n\n'.format(array_name,size));
|
fout.write('const uint32_t {0}_init_script_size = sizeof({0}_init_script); // size = {1} bytes\n\n'.format(array_name,size));
|
||||||
# fout.write('void main() {0} printf("size {1}\\n", {2}_init_script_size); {3}'.format('{', '%u', array_name,'}'));
|
|
||||||
|
|
||||||
# check usage: 2-3 param
|
# check usage: 2-3 param
|
||||||
if len(sys.argv) < 3 or len(sys.argv) > 4:
|
if len(sys.argv) < 3 or len(sys.argv) > 4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user