drivers: serial: serial_test: Patch irq_isr set to undefined
This commit fixes an error where the irq_isr callback is set to an undefined variable instead of NULL. Signed-off-by: Bjarki Arge Andreasen <baa@trackunit.com>
This commit is contained in:
parent
7fb10c82cc
commit
ebd6681589
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ static int serial_vnd_callback_set(const struct device *dev, uart_callback_t cal
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_UART_EXCLUSIVE_API_CALLBACKS) && defined(CONFIG_UART_INTERRUPT_DRIVEN)
|
#if defined(CONFIG_UART_EXCLUSIVE_API_CALLBACKS) && defined(CONFIG_UART_INTERRUPT_DRIVEN)
|
||||||
data->irq_isr = cb;
|
data->irq_isr = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (callback == NULL && data->read_buf) {
|
if (callback == NULL && data->read_buf) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue