bitstring capacity 8-bit size bug (#227)

* bitstring capacity 8-bit size bug

Codify the 8-bit size limit for bit-string capacity.
Thank you, Chris Ellec!

* Allow up to 32 byte bitstrings

Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
Steve Karg
2022-02-18 13:36:07 -06:00
committed by GitHub
parent d3e2a0d33f
commit 24eb5d7c87
2 changed files with 51 additions and 38 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ extern "C" {
uint8_t bitstring_bytes_used(
BACNET_BIT_STRING * bit_string);
BACNET_STACK_EXPORT
uint8_t bitstring_bits_capacity(
unsigned bitstring_bits_capacity(
BACNET_BIT_STRING * bit_string);
/* used for encoding and decoding from the APDU */
BACNET_STACK_EXPORT