Skip to content

Commit

Permalink
Revert "Remove 0.5 ohm increase to resistance" (#1794)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim authored Aug 12, 2023
1 parent caedce0 commit f69c37c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Core/Drivers/USBPD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ bool parseCapabilitiesArray(const uint8_t numCaps, uint8_t *bestIndex, uint16_t
*bestIndex = 0xFF; // Mark unselected
*bestVoltage = 5000; // Default 5V

uint8_t tipResistance = getTipResistanceX10();
// Fudge of 0.5 ohms to round up a little to account for us always having off periods in PWM
uint8_t tipResistance = getTipResistanceX10() + 5;
#ifdef MODEL_HAS_DCDC
// If this device has step down DC/DC inductor to smooth out current spikes
// We can instead ignore resistance and go for max voltage we can accept; and rely on the DC/DC regulation to keep under current limit
Expand Down

0 comments on commit f69c37c

Please sign in to comment.