|
@@ -358,14 +358,14 @@ static void cmd_get_source_cap(BaseSequentialStream *chp, int argc, char *argv[]
|
358
|
358
|
/* If we haven't seen any Source_Capabilities */
|
359
|
359
|
if (pdbs_dpm_data->capabilities == NULL) {
|
360
|
360
|
/* Have we started reading Type-C Current advertisements? */
|
361
|
|
- if (pdbs_dpm_data->typec_current != None) {
|
|
361
|
+ if (pdbs_dpm_data->typec_current != fusb_tcc_none) {
|
362
|
362
|
/* Type-C Current is available, so report it */
|
363
|
363
|
chprintf(chp, "PDO 1: typec_virtual\r\n");
|
364
|
|
- if (pdbs_dpm_data->typec_current == Default) {
|
|
364
|
+ if (pdbs_dpm_data->typec_current == fusb_tcc_default) {
|
365
|
365
|
chprintf(chp, "\ti: 0.50 A\r\n");
|
366
|
|
- } else if (pdbs_dpm_data->typec_current == OnePointFiveAmps) {
|
|
366
|
+ } else if (pdbs_dpm_data->typec_current == fusb_tcc_1_5) {
|
367
|
367
|
chprintf(chp, "\ti: 1.50 A\r\n");
|
368
|
|
- } else if (pdbs_dpm_data->typec_current == ThreePointZeroAmps) {
|
|
368
|
+ } else if (pdbs_dpm_data->typec_current == fusb_tcc_3_0) {
|
369
|
369
|
chprintf(chp, "\ti: 3.00 A\r\n");
|
370
|
370
|
}
|
371
|
371
|
return;
|