diff options
Diffstat (limited to 'test/charge_ramp.c')
-rw-r--r-- | test/charge_ramp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/charge_ramp.c b/test/charge_ramp.c index 01571c8f3a..d239081c1c 100644 --- a/test/charge_ramp.c +++ b/test/charge_ramp.c @@ -37,6 +37,11 @@ static int charge_limit_ma; /* Mock functions */ +__override uint8_t board_get_usb_pd_port_count(void) +{ + return CONFIG_USB_PD_PORT_MAX_COUNT; +} + /* Override test_mockable implementations in charge_ramp module */ int chg_ramp_allowed(int port, int supplier) { |