DC/DC: Use high/low DcBus instead of PowerPort for control
This makes more sense because the DC/DC converter actually connects two DcBuses and does not need separate PowerPorts. Also makes the code look more clean as variable access like dcdc.hvs->bus->voltage is avoided. The DcBus pointers in the Dcdc are now called hvb and lvb for high- voltage side bus and low-voltage side bus.
This commit is contained in:
@@ -69,7 +69,7 @@ void dev_stat_new_bat_voltage_max()
|
||||
|
||||
void dev_stat_new_dcdc_current_max()
|
||||
{
|
||||
dcdc.lvs->current = 21;
|
||||
dcdc.inductor_current = 21;
|
||||
dev_stat.update_min_max_values();
|
||||
TEST_ASSERT_EQUAL(21, dev_stat.dcdc_current_max);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user