Prepere repo so we can run auto formatters (#747)
* clang-format: Ignore javascript files Ignore javascript files. Clang-format is not very good formatter for javascript files anyway. If we ever need javascript formatter we should use Prettier. * clang-format: Ignore some lines in sources Couple things get formatted really funky if we let clang-format format those. Just ignore those locally. * zephyr/tescase.yaml: Fix yaml syntax pre-commit hook check-yaml did found out that there are two skips. Remove another as this is not right syntax. * Fix repo contains unicode replacement chars When running pre-commit text-unicode-replacement-char it founds that there is couple unicode replacemnt chars. Remove and replace these. * Convert some tabs to spaces manually We will soon auto format tabs to spaces. How ever it could not do couple thing so fix those by hand first. * Make files with shebang executables It is good habit that if file has shebang then it is marked executable. These where found with pre-commit check-shebang-scripts-are-executable checker. --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
@@ -1465,9 +1465,9 @@ int bvlc6_decode_secure_bvll(uint8_t *pdu,
|
||||
*
|
||||
* This message provides a mechanism whereby a foreign device
|
||||
* shall cause a BBMD to distribute a Forwarded-NPDU
|
||||
* BVLC to the local multicast domain, to all BBMD�s configured
|
||||
* in the BBMD�s BDT, and to all foreign devices in the
|
||||
* BBMD�s FDT.
|
||||
* BVLC to the local multicast domain, to all BBMD's configured
|
||||
* in the BBMD's BDT, and to all foreign devices in the
|
||||
* BBMD's FDT.
|
||||
*
|
||||
* @param pdu - buffer to store the encoding
|
||||
* @param pdu_size - size of the buffer to store encoding
|
||||
@@ -1696,10 +1696,10 @@ int bvlc6_broadcast_distribution_table_encode(uint8_t *apdu,
|
||||
{
|
||||
int len = 0;
|
||||
|
||||
len = bvlc6_broadcast_distribution_table_list_encode(NULL,
|
||||
len = bvlc6_broadcast_distribution_table_list_encode(NULL,
|
||||
bdt_head);
|
||||
if (len <= apdu_size) {
|
||||
len = bvlc6_broadcast_distribution_table_list_encode(apdu,
|
||||
len = bvlc6_broadcast_distribution_table_list_encode(apdu,
|
||||
bdt_head);
|
||||
} else {
|
||||
len = BACNET_STATUS_ERROR;
|
||||
@@ -1800,10 +1800,10 @@ int bvlc6_foreign_device_table_encode(uint8_t *apdu,
|
||||
{
|
||||
int len = 0;
|
||||
|
||||
len = bvlc6_foreign_device_table_list_encode(NULL,
|
||||
len = bvlc6_foreign_device_table_list_encode(NULL,
|
||||
fdt_head);
|
||||
if (len <= apdu_size) {
|
||||
len = bvlc6_foreign_device_table_list_encode(apdu,
|
||||
len = bvlc6_foreign_device_table_list_encode(apdu,
|
||||
fdt_head);
|
||||
} else {
|
||||
len = BACNET_STATUS_ERROR;
|
||||
|
||||
Reference in New Issue
Block a user