]> granicus.if.org Git - esp-idf/commit
sleep: fix flushing UARTs when entering deep sleep
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 4 Jul 2018 04:11:07 +0000 (12:11 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 19 Jul 2018 07:21:23 +0000 (10:21 +0300)
commitd360f6d95d7e2241e901e52b0f534868cc7b302a
treec8b9086681070528857bc22d05f4ebc4c889c356
parentafdc73c8abe986714e55cb79f676cc1edcfe8911
sleep: fix flushing UARTs when entering deep sleep

Since 94250e42a0, UART output is suspended when entering sleep mode
(deep or light sleep). This makes sense for light sleep, where sleep
normally takes small amount of time, and flushing the UART would add
a lot of latency. But this breaks existing behaviour for deep sleep,
where UART output was previously sent out before entering sleep mode.

Closes https://github.com/espressif/esp-idf/issues/2145
components/esp32/sleep_modes.c
docs/en/api-reference/system/sleep_modes.rst