1
0
forked from me/IronOS

Revert "Remove 0.5 ohm increase to resistance" (#1794)

This commit is contained in:
Ben V. Brown
2023-08-12 15:31:02 +10:00
committed by GitHub
parent caedce0300
commit f69c37c4aa

View File

@@ -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