Store correct power button release time

parent c94f6d54
......@@ -122,6 +122,8 @@ void host_power_button_pressed(const struct device *dev, struct gpio_callback *c
// The debounce delay has passed since last press, handle request
LOG_INF("Host power button pressed");
last_press = k_uptime_get();
if (want_power_on) {
power_on_host();
}
......@@ -129,8 +131,6 @@ void host_power_button_pressed(const struct device *dev, struct gpio_callback *c
power_off_chassis(0);
}
}
last_press = k_uptime_get();
}
void host_reset_button_pressed(const struct device *dev, struct gpio_callback *cb, uint32_t pins)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment