Trailing white spaces removed
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#define PWM_F_KHZ 70
|
||||
#define PWM_DEADTIME_NS 300
|
||||
|
||||
const float duty_epsilon = 0.006;
|
||||
const float duty_epsilon = 0.006;
|
||||
// calculated duty cycle float may deviate +/- duty_epsilon from test target value
|
||||
|
||||
static void init_structs()
|
||||
@@ -21,7 +21,6 @@ static void init_structs()
|
||||
half_bridge_stop();
|
||||
}
|
||||
|
||||
|
||||
void half_brigde_set_duty_cycle_works()
|
||||
{
|
||||
half_bridge_set_duty_cycle(MID_PWM_DUTY);
|
||||
@@ -48,14 +47,12 @@ void half_brigde_not_exceeds_max()
|
||||
TEST_ASSERT_FLOAT_WITHIN(duty_epsilon,MAX_PWM_DUTY,half_bridge_get_duty_cycle());
|
||||
}
|
||||
|
||||
|
||||
void half_brigde_not_exceeds_min()
|
||||
{
|
||||
half_bridge_set_duty_cycle(-1.0);
|
||||
TEST_ASSERT_FLOAT_WITHIN(duty_epsilon,MIN_PWM_DUTY,half_bridge_get_duty_cycle());
|
||||
}
|
||||
|
||||
|
||||
void half_brigde_tests()
|
||||
{
|
||||
init_structs();
|
||||
@@ -69,4 +66,4 @@ void half_brigde_tests()
|
||||
RUN_TEST(half_brigde_not_steps_under_min);
|
||||
|
||||
UNITY_END();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user