Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 6, 2024
1 parent f596d91 commit 4ca1d73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion socketcan/libcanard/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BraceWrapping:
AfterFunction: true
AfterUnion: true
AfterNamespace: true
AfterExternBlock: true
AfterExternBlock: false
BeforeElse: true

BreakBeforeTernaryOperators: true
Expand Down
2 changes: 1 addition & 1 deletion stm32/libcanard/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BraceWrapping:
AfterFunction: true
AfterUnion: true
AfterNamespace: true
AfterExternBlock: true
AfterExternBlock: false
BeforeElse: true

BreakBeforeTernaryOperators: true
Expand Down
3 changes: 2 additions & 1 deletion stm32/libcanard/bxcan/src/bxcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ static bool waitMSRINAKBitStateChange(volatile const BxCANType* const bxcan_base
// The counter variable is declared volatile to prevent the compiler from optimizing it away.
volatile size_t nticks = BXCAN_BUSYWAIT_DELAY_SYSTEM_CORE_CLOCK / 7000U;
while (--nticks)
{}
{
}
}

return out_status;
Expand Down

0 comments on commit 4ca1d73

Please sign in to comment.