|
@@ -329,10 +329,10 @@ static void cmd_output(BaseSequentialStream *chp, int argc, char *argv[])
|
329
|
329
|
/* Set the output status and re-negotiate power */
|
330
|
330
|
if (strcmp(argv[0], "enable") == 0) {
|
331
|
331
|
pdb_dpm_output_enabled = true;
|
332
|
|
- chEvtSignal(pdb_pe_thread, PDB_EVT_PE_GET_SOURCE_CAP);
|
|
332
|
+ chEvtSignal(pdb_pe_thread, PDB_EVT_PE_NEW_POWER);
|
333
|
333
|
} else if (strcmp(argv[0], "disable") == 0) {
|
334
|
334
|
pdb_dpm_output_enabled = false;
|
335
|
|
- chEvtSignal(pdb_pe_thread, PDB_EVT_PE_GET_SOURCE_CAP);
|
|
335
|
+ chEvtSignal(pdb_pe_thread, PDB_EVT_PE_NEW_POWER);
|
336
|
336
|
} else {
|
337
|
337
|
/* Or, if the argument was invalid, print a usage message */
|
338
|
338
|
chprintf(chp, "Usage: output [enable|disable]\r\n");
|