diff options
| author | Andrew Yang <[email protected]> | 2017-07-31 12:15:02 -0700 |
|---|---|---|
| committer | Andrew Yang <[email protected]> | 2017-07-31 12:15:02 -0700 |
| commit | 2cda40f84726694a5e0ea20226e776f533cc7bce (patch) | |
| tree | 6417ca9d18747f1cc2d27303f2df160e05b6320c | |
| parent | 25e7ff1a8513f9fe370562118ca336488650503d (diff) | |
Correcting UCSI_MAX_NUM_PDOS
| -rw-r--r-- | usb/UcmCxUcsi/Ppm.h | 2 | ||||
| -rw-r--r-- | usb/UcmCxUcsi/Ucsi.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usb/UcmCxUcsi/Ppm.h b/usb/UcmCxUcsi/Ppm.h index 341c25d4..e83399bf 100644 --- a/usb/UcmCxUcsi/Ppm.h +++ b/usb/UcmCxUcsi/Ppm.h @@ -68,7 +68,7 @@ typedef struct _PPM_CONNECTOR_CHANGE_CONTEXT LONG InProgress; UCM_CHARGING_STATE ChargingState; UCM_PD_REQUEST_DATA_OBJECT Rdo; - UCM_PD_POWER_DATA_OBJECT Pdos[7]; + UCM_PD_POWER_DATA_OBJECT Pdos[UCSI_MAX_NUM_PDOS]; UCHAR PdoCount; } PPM_CONNECTOR_CHANGE_CONTEXT, *PPPM_CONNECTOR_CHANGE_CONTEXT; diff --git a/usb/UcmCxUcsi/Ucsi.h b/usb/UcmCxUcsi/Ucsi.h index 72950d6c..1c03d5a3 100644 --- a/usb/UcmCxUcsi/Ucsi.h +++ b/usb/UcmCxUcsi/Ucsi.h @@ -29,7 +29,7 @@ Environment: #define UCSI_MAX_NUM_ALT_MODE 0x80 #define UCSI_MIN_TIME_TO_RESPOND_WITH_BUSY 0x0A #define UCSI_GET_ERROR_STATUS_DATA_LENGTH 0x10 -#define UCSI_MAX_NUM_PDOS 0x32 // Table 6-32 Counter parameters PD 2.0 V1.1 +#define UCSI_MAX_NUM_PDOS 0x7 // PD Rev2.0 Ver1.3: "6.2.1.2 Number of Data Objects" and "6.4.1 Capabilities Message" typedef enum _UCSI_COMMAND |
