Add new option max_length for strings (issue #107)
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 20 Feb 2017 13:47:44 +0000 (15:47 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 20 Feb 2017 13:47:44 +0000 (15:47 +0200)
commitca74746e23b5a9e7916e8fde6632d71d61603f50
tree7f52b0d716c54f55532c90aa931d8305b1a88ba9
parent473816c66b559be6850fc1ef753a7141d1848300
Add new option max_length for strings (issue #107)

Max_size is the allocated size, so users had to add +1 for
the null terminator. Max_length does the +1 automatically
in the generator.
generator/nanopb_generator.py
generator/proto/nanopb.proto
tests/options/options.expected
tests/options/options.proto