1
0
forked from me/IronOS

Enable EPR if vbus is not connected

This commit is contained in:
Ben V. Brown
2022-09-18 18:48:35 +10:00
parent c89db78b45
commit 4696f0f907
2 changed files with 5 additions and 2 deletions

View File

@@ -127,7 +127,8 @@
#define POWER_LIMIT_STEPS 5 //
#define OP_AMP_GAIN_STAGE OP_AMP_GAIN_STAGE_PINECIL // Uses TS100 resistors
#define TEMP_uV_LOOKUP_HAKKO // Use Hakko lookup table
#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate
#define USB_PD_VMAX 24 // Maximum voltage for PD to negotiate
#define POW_EPR 1 // EPR mode is tentatively enabled
#define PID_TIM_HZ (8) // Tick rate of the PID loop
#define MAX_TEMP_C 450 // Max soldering temp selectable °C
#define MAX_TEMP_F 850 // Max soldering temp selectable °F

View File

@@ -287,7 +287,9 @@ bool pdbs_dpm_evaluate_capability(const pd_msg *capabilities, pd_msg *request) {
// We dont do usb
// request->obj[0] |= PD_RDO_USB_COMMS;
#ifdef POW_EPR
request->obj[0] |= PD_RDO_EPR_CAPABLE;
if (USBPowerDelivery::isVBUSConnected() == false ) {
request->obj[0] |= PD_RDO_EPR_CAPABLE;
}
#endif
/* Update requested voltage */