mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Made timer tests respect 'USE_TIMER_MGMT'.
This commit is contained in:
parent
1c50c317d6
commit
59026a871e
3 changed files with 6 additions and 2 deletions
|
@ -39,6 +39,7 @@ TEST(TimerDefinitionTest, Test_counterMismatch) {
|
|||
<< " array element appears to be " << &t - timerHardware - 1 << '.';
|
||||
}
|
||||
|
||||
#if !defined(USE_TIMER_MGMT)
|
||||
TEST(TimerDefinitionTest, Test_duplicatePin) {
|
||||
std::set<TestPinEnum> usedPins;
|
||||
for (const timerHardware_t &t : timerHardware)
|
||||
|
@ -87,6 +88,7 @@ TEST(TimerDefinitionTest, Test_usedTimers)
|
|||
<< "USED_TIMERS definition based on timerHardware:" << std::endl
|
||||
<< writeUsedTimers(expected) << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
// STUBS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue