From 3480f7a0bc1539bce59c9f276341f62fcb48e8dd Mon Sep 17 00:00:00 2001 From: ligd Date: Sun, 3 Nov 2019 19:56:28 -0600 Subject: [PATCH] drivers/serial/serial.c: Only real uart will call pm_activity(). --- drivers/serial/serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index 8ef0058da4..7ccc119b85 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -1696,7 +1696,7 @@ void uart_datareceived(FAR uart_dev_t *dev) uart_pollnotify(dev, POLLIN); -#ifdef CONFIG_PM +#if defined(CONFIG_PM) && defined(CONFIG_SERIAL_CONSOLE) /* Call pm_activity when characters are received on the console device */ if (dev->isconsole)