mirror of https://github.com/google/pebble
fw/system/die: do not force vibe off
reset_due_to_software_failure can be called from ISR context, and vibe_force_off can potentially block (I2C calls), so if we're unlucky that vibe is ON while we need to reset, well, that's it as bootloader won't turn it off but next system boot. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
4051c5bb97
commit
003acd7483
|
|
@ -32,9 +32,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NORETURN reset_due_to_software_failure(void) {
|
NORETURN reset_due_to_software_failure(void) {
|
||||||
// Make sure vibration is off
|
|
||||||
vibe_force_off();
|
|
||||||
|
|
||||||
#if PULSE_EVERYWHERE
|
#if PULSE_EVERYWHERE
|
||||||
pulse_logging_log_buffer_flush();
|
pulse_logging_log_buffer_flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue