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:
@@ -152,8 +152,8 @@ static bool MSTP_Compare_Data_Expecting_Reply(
|
||||
request.address.mac[0] = src_address;
|
||||
request.address.mac_len = 1;
|
||||
offset = bacnet_npdu_decode(
|
||||
&request_pdu[0], request_pdu_len, NULL, &request.address,
|
||||
&request.npdu_data);
|
||||
&request_pdu[0], request_pdu_len, NULL, &request.address,
|
||||
&request.npdu_data);
|
||||
if (request.npdu_data.network_layer_message) {
|
||||
return false;
|
||||
}
|
||||
@@ -170,8 +170,8 @@ static bool MSTP_Compare_Data_Expecting_Reply(
|
||||
/* decode the reply data */
|
||||
bacnet_address_copy(&reply.address, dest_address);
|
||||
offset = bacnet_npdu_decode(
|
||||
&reply_pdu[0], reply_pdu_len, &reply.address, NULL,
|
||||
&reply.npdu_data);
|
||||
&reply_pdu[0], reply_pdu_len, &reply.address, NULL,
|
||||
&reply.npdu_data);
|
||||
if (reply.npdu_data.network_layer_message) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user