[FL-3863] toolchain: v37 (#3746)

* toolchain: v36
* toolchain: fixed cert path; lib: nanopb: updated to 0.4.8
* fbtenv: rolled back cert path for 3.11
* clang-format: updated config for v18
* linter fixes
* clang-format: properly regenerated config (`clang-format -style=file:.clang-format -dump-config > .clang-format-new; mv .clang-format-new .clang-format`)
* clang-format: AllowShortLoopsOnASingleLine: false
* toolchain: v37
* fbt: compilation_db.py: fixes for Windows
This commit is contained in:
hedger
2024-07-05 20:27:21 +03:00
committed by GitHub
parent 8c380ebe94
commit 7879876ba1
43 changed files with 170 additions and 117 deletions

View File

@@ -126,7 +126,8 @@ bool protocol_pyramid_decoder_feed(ProtocolPyramid* protocol, bool level, uint32
bool protocol_pyramid_get_parity(const uint8_t* bits, uint8_t type, int length) {
int x;
for(x = 0; length > 0; --length) x += bit_lib_get_bit(bits, length - 1);
for(x = 0; length > 0; --length)
x += bit_lib_get_bit(bits, length - 1);
x %= 2;
return x ^ type;
}