Enabled all warnings for unit-test builds

This commit is contained in:
Martin Jaeger
2019-10-24 16:10:35 +02:00
parent 68ae3227cc
commit a7239fa9bb
4 changed files with 5 additions and 12 deletions
-2
View File
@@ -251,7 +251,6 @@ void buck_derating_temperature_limits_exceeded()
void buck_stop_input_power_too_low()
{
start_buck();
float pwm_before = half_bridge_get_duty_cycle();
dcdc.power_good_timestamp = time(NULL) - 11;
dcdc.control();
TEST_ASSERT(half_bridge_enabled() == false);
@@ -260,7 +259,6 @@ void buck_stop_input_power_too_low()
void buck_stop_high_voltage_emergency()
{
start_buck();
float pwm_before = half_bridge_get_duty_cycle();
dcdc_lv_port.voltage = dcdc.ls_voltage_max + 0.1;
dcdc.control();
TEST_ASSERT(half_bridge_enabled() == false);
-7
View File
@@ -9,13 +9,6 @@
#include "main.h"
static void init_structs()
{
battery_conf_init(&bat_conf, BAT_TYPE_FLOODED, 6, 100);
battery_init_dc_bus(&bat_terminal, &bat_conf, 1);
charger.state = CHG_STATE_IDLE;
}
static adc_values_t adcval;
const float dcdc_current_sun = 3;