|
@@ -18,6 +18,8 @@
|
18
|
18
|
|
19
|
19
|
#include "policy_engine.h"
|
20
|
20
|
|
|
21
|
+#include <stdbool.h>
|
|
22
|
+
|
21
|
23
|
#include "messages.h"
|
22
|
24
|
#include "priorities.h"
|
23
|
25
|
#include "device_policy_manager.h"
|
|
@@ -364,9 +366,10 @@ static enum policy_engine_state pe_sink_hard_reset(void)
|
364
|
366
|
/* If we've already sent the maximum number of hard resets, give up */
|
365
|
367
|
if (hard_reset_counter > PD_N_HARD_RESET_COUNT) {
|
366
|
368
|
pdb_dpm_output_off();
|
367
|
|
- /* TODO: Fall back to USB BC or Type-C power if configured for 5 V. */
|
368
|
|
- for (;;)
|
|
369
|
+ /* TODO: Fall back to Type-C Current if configured for 5 V. */
|
|
370
|
+ while (true) {
|
369
|
371
|
chThdSleepMilliseconds(1000);
|
|
372
|
+ }
|
370
|
373
|
}
|
371
|
374
|
|
372
|
375
|
/* Generate a hard reset signal */
|