drivers/serial/serial.c: Only real uart will call pm_activity().
This commit is contained in:
parent
270b62bacc
commit
3480f7a0bc
@ -1696,7 +1696,7 @@ void uart_datareceived(FAR uart_dev_t *dev)
|
|||||||
|
|
||||||
uart_pollnotify(dev, POLLIN);
|
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 */
|
/* Call pm_activity when characters are received on the console device */
|
||||||
|
|
||||||
if (dev->isconsole)
|
if (dev->isconsole)
|
||||||
|
Loading…
Reference in New Issue
Block a user