Added more configuration information to config.h, including the default Vendor Id. This BACnet Stack at SourceForge has been assigned Vendor Id 260 by ASHRAE. We can now release binary utilities and tools with our own Vendor ID!

This commit is contained in:
skarg
2007-08-21 17:50:01 +00:00
parent 12ce5a0d7f
commit f74d39558f
7 changed files with 65 additions and 28 deletions
+10 -3
View File
@@ -523,10 +523,17 @@ int bacapp_data_len(uint8_t * apdu, int max_apdu_len,
max_apdu_len - apdu_len, &application_value);
}
apdu_len += len;
if (opening_tag_number_counter)
total_len += len;
/* ERROR! */
if (opening_tag_number_counter) {
if (len > 0) {
total_len += len;
} else {
/* error: len is not incrementing */
total_len = -1;
break;
}
}
if (apdu_len > max_apdu_len) {
/* error: exceeding our buffer limit */
total_len = -1;
break;
}