We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3ffa896 + 0bc7a18 commit 1ba0763Copy full SHA for 1ba0763
zephyr/program/lotus/lotus/src/input_module.c
@@ -178,12 +178,16 @@ static enum ec_status check_deck_state(struct host_cmd_handler_args *args)
178
int idx;
179
180
/* set mode */
181
- if (p->mode == 0x01)
+ if (p->mode == 0x01) {
182
deck_state = DECK_DISCONNECTED;
183
- else if (p->mode == 0x02)
+ gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_hub_b_pwr_en), 0);
184
+ } else if (p->mode == 0x02) {
185
deck_state = DECK_FORCE_ON;
- else if (p->mode == 0x04)
186
+ gpio_pin_set_dt(GPIO_DT_FROM_NODELABEL(gpio_hub_b_pwr_en), 1);
187
+ } else if (p->mode == 0x04) {
188
deck_state = DECK_FORCE_OFF;
189
190
+ }
191
192
set_detect_mode(p->mode);
193
0 commit comments